Mobilefirst 7.1推送通知 - 发送消息REST API与submitNotification(userId,notificationText) [英] Mobilefirst 7.1 Push notification - Send Message REST API vs submitNotification(userId, notificationText)

查看:131
本文介绍了Mobilefirst 7.1推送通知 - 发送消息REST API与submitNotification(userId,notificationText)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的要求是发送单播推送通知。我们为此创建了一个事件源和订阅用户,如文档

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)我们是否应该使用我们在Push Adapter中声明的方法。

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

2)发送消息(POST) com.ibm.worklight.apiref.doc / rest_runtime / c_restapi_runtime.html?lang = enrel =nofollow> REST API运行时服务。这是发送单播通知的正确方法吗?

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

推荐答案

这两种方法都是有效的。

Both methods are valid ones.

你会使用REST选项,如果您想自动发送通知。有些人更喜欢使用REST端点,有些人更喜欢使用适配器 - 你使用最适合你的方法。

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.

这篇关于Mobilefirst 7.1推送通知 - 发送消息REST API与submitNotification(userId,notificationText)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆