Sinch - 即时消息 - 在应用关闭时收到推送通知

时间:2015-10-07 17:24:55

标签: ios background push-notification sinch instant-message

我有以下情况:

  1. iPhoneA& iPhoneB:初始化消息支持和启用推送支持的sinch客户端
  2. iPhoneA的应用已关闭
  3. iPhoneB向iPhoneA发送消息。
  4. iPhoneA正确收到通知(显示横幅)。所以iPhoneA 按图标打开应用
  5. 如何检测并收到收到的通知?

    由于

1 个答案:

答案 0 :(得分:1)

Handling Local and Remote Notifications

下的Apple文档中都包含了这些内容

https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/IPhoneOSClientImp.html

在Sinch文档中还有一些关于如何传递你进入Sinch的对象的东西:

https://www.sinch.com/tutorials/ios-instant-messaging-using-sinchservice/#4.%20push%20with%20sinchservice

相关问题