Mobilefirst 7.1 Push notification - Send Message R

2019-09-12 07:01发布

问题:

Our requirement is to send unicast push notifications. For which we have created an Event source and subscribed user as mentioned in this documentation

But which method is correct to send push notification? What are Pros and Cons of using one or the other

submitNotification(userId, notificationText)

1)Should we use the method we declared in Push Adapter.

2)The Send Message (POST) from REST API Runtime Services. Is this the correct way to send Unicast notifications.

回答1:

Both methods are valid ones.

You would use the REST option if you'd like to "automate" the sending of the notifications. Some prefer using REST endpoints, some prefer using an adapter - you use the approach that suits you best.