1

I have an app that is build upon XCode 7.3 and swift 2.3 version and is live on app store. On iOS 9 device token is successfully generated but when I test it on iOS 10, device token is not generated. I can't debug it on iOS device because XCode doesn't support iOS 10 devices. So for that I am archiving with production mode and then I am testing on iOS 10 devices but unable to get device token. I know that for iOS 10 there is a new framework for notification but that doesn't support in XCode 7 . Is it any bug on iOS 10 OS or am I doing it some wrong way because I don't find any solution. Also due to some reasons I cannot convert code to swift 3.0.

I am getting a strange issue. On development profile device token for iOS 10 is generated but on production mode it is not generated. Any possible resons.

4

2 回答 2

1
  1. 下载最新的 XCode(8.1 现已推出)
  2. 然后按照以下链接中提到的步骤处理 iOS 10 及更高版本的 推送通知 Handle Push notification for iOS 10

  3. 然后测试应用程序。您将获得设备令牌。

于 2016-11-12T07:18:38.330 回答
0

我也有同样的问题,但通过执行以下步骤解决

在 Xcode 中启用“推送通知”,在Targets -> Capabilities -> Push Notifications Attached image 下供参考

注意:供应配置文件应处于活动状态

于 2017-03-13T09:50:31.597 回答