Mobilefirst 7.1 Push notification - Send Message REST API vs submitNotification(userId, notificationText)

半世苍凉 提交于 2020-01-07 04:28:26

问题


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.



来源:https://stackoverflow.com/questions/36814846/mobilefirst-7-1-push-notification-send-message-rest-api-vs-submitnotification

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!