【问题标题】:Sinch - Instant Message - Push Notification received while app is closedSinch - 即时消息 - 应用关闭时收到推送通知
【发布时间】:2015-10-07 17:24:54
【问题描述】:

我有以下场景:

  1. iPhoneA 和 iPhoneB:sinch 客户端已初始化并启用消息支持和推送支持
  2. iPhoneA 的应用程序已关闭
  3. iPhoneB 向 iPhoneA 发送消息。
  4. iPhoneA 正确接收通知(出现横幅)。所以 iPhoneA 按图标打开应用

如何检测和捕获收到的通知?

谢谢

【问题讨论】:

  • 你使用的是sinchClient还是sinchService?

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


【解决方案1】:

所有内容都包含在 Apple 文档中,Handling Local and Remote Notifications

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

在 Sinch 文档中还有一些关于如何将您进入 Sinch 的对象传递给 Sinch 的内容:

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

【讨论】:

  • 在处理本地和远程通知中,Apple 说:用户点击(或单击)应用程序图标:如果在运行 iOS 的设备上点击应用程序图标,则应用程序调用相同的方法(applicationDidFinishLaunching: ),但未提供有关通知的信息。
  • 辛奇对这种情况只字未提。
猜你喜欢
  • 2016-01-05
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-08-10
  • 2017-04-11
  • 1970-01-01
相关资源
最近更新 更多