How should I store dynamic massages for Push notification?

    <entity entity-name="NotificationGatewayConfig" package="com.pythys.notifiaction">
        <field name="notificationGatewayConfigId" type="id" is-pk="true" />
        <field name="notifactionGatewayTypeEnumId" type="id" />
        <field name="description" type="text-medium" />
        <field name="initServiceName" type="text-medium" />
        <field name="sendServiceName" type="text-medium" />
        <relationship type="one" related="moqui.basic.Enumeration" short-alias="notificationGatewayType">
            <key-map field-name="notifactionGatewayTypeEnumId" related="enumId" />
        </relationship>
    </entity>

    <entity entity-name="ProductStoreNotificationGateway" package="com.pythys.notifiaction">
        <field name="productStoreId" type="id" is-pk="true" />
        <field name="notificationGatewayConfigId" type="id" />
        <relationship type="one" related="com.pythys.notifiaction.NotificationGatewayConfig" short-alias="notificationGatewayConfig">
            <key-map field-name="notificationGatewayConfigId" />
        </relationship>
    </entity>

I designed a Notification gateway entity similar to paymentGateway entity. I would appreciate any suggestions you have for the above entity.

Now I want to send push notifications based on status updates. There will be a title and dynamic description with the current status. Similar to the email template entity where we are storing the subject for email subject.

Can anyone give me suggestions on how I should design the entity? Alternatively, if there is an existing entity that meets the above requirements, please let me know.

Thank you

1 Like

I suggest you check out Webroot - Login and click on the Topic Subscriptions tab. That’s how notifications are currently handled. See: moqui-framework/framework/entity/SecurityEntities.xml at d677e40c14e7a93b10eefed245e582ae3bad6e5d · moqui/moqui-framework · GitHub

There could be an implementation of notifications added for push notifications fairly easily