ios - Twilio IP 消息传递 : What is the point of [client handleNotification] in the iOS messaging client API?

标签 ios twilio messaging

位于此处:

https://media.twiliocdn.com/sdk/ios/ip-messaging/releases/0.13.6/docs/Classes/TwilioIPMessagingClient.html#//api/name/handleNotification :

我正在构建一个 twilio IP 消息传递应用程序,无法解构该功能的使用。这些文档很神秘,示例也很神秘

https://github.com/twilio/ip-demo-ios/search?utf8=%E2%9C%93&q=handlenotification

也没说清楚。

最佳答案

此处为 Twilio 开发人员布道师。

当您的应用程序收到来自 APNS 的传入通知时,应使用 handleNotification 方法。这是一个方便的函数,可以解析通知并创建所有相关的 SDK 对象。

在演示中,您可以看到 notifications are received by the AppDelegate (如果需要,您可以将不同的通知定向到应用程序的不同部分),passed on to the IPMessagingManager here最后 passed into the IPMessagingClient via handleNotification in the part you pointed out .

让我知道这是否有帮助。

关于ios - Twilio IP 消息传递 : What is the point of [client handleNotification] in the iOS messaging client API?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36005476/

相关文章:

twilio - 将 Twilio 调用置于保持状态并稍后取回

google-chrome-extension - 未捕获错误的原因 : Attempting to use a disconnected port object

ios - 快速消息传递应用程序,uitableview 无法正确响应键盘?

java - 使用 Java 将 SOAP 消息格式转换为 Socket 消息格式,反之亦然

ios - 我的 .stringsdict 文件不影响应用程序

ios - 在已发布/可用的 iOS 应用程序的苹果商店中更改应用程序名称

iphone - 确定日期是否发生变化

ios - 解析 Objective C 错误中的 JSON 链接

python - for循环语句不读取if语句继续下一次迭代

php - curl: (7) 无法连接到本地主机端口 3000:连接被拒绝