Mobilefirst 7.1 Push notification - Send Message R

2019-09-12 06:33发布

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条回答
可以哭但决不认输i
2楼-- · 2019-09-12 07:11

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.

查看更多
登录 后发表回答