简体   繁体   English

Xcode 8,Crashlytics和测试期间的推送通知

[英]Xcode 8, Crashlytics and push notifications during test

I have one iOS app which I distribute with Crashlytics Beta. 我有一个与Crashlytics Beta一起分发的iOS应用。 When I distribute it, I sign the app with my Ad hoc certificate. 分发时,我会使用我的临时证书对应用程序进行签名。 I dont get push notifications in this version. 我没有在此版本中获得推送通知。

If I upload the app to iTunes Connect and distribute it with TestFlight, push notification works! 如果我将应用程序上传到iTunes Connect并通过TestFlight分发,则推送通知有效!

The difference is, that the app is signed with my App Store certificate. 区别在于,该应用程序已使用我的App Store证书签名。 Also, our push server (Pushwoosh) is setup with production envrionment. 此外,我们的推播服务器(Pushwoosh)设置了生产环境。

It seems that the certificate signing or something else has an influence in the push notifications, but I cant figure out what. 看来证书签名或其他内容会对推送通知产生影响,但是我不知道是什么。

The aps-environment is still set to development when distributing to iTunes Connect. 分发到iTunes Connect时,仍然将aps-environment设置为可development

Any thoughts? 有什么想法吗? The problem arose after updating to Xcode 8 and supporting iOS 10. 更新到Xcode 8并支持iOS 10后出现了问题。

您是否尝试过使用自动管理注销 (目标-常规-签名)并手动选择配置文件来进行Xcode 8归档?

My setup might have been wrong, so I changed it. 我的设置可能有误,因此我进行了更改。

When distributing to test regardless of app target/release I now set the push server (Pushwoosh) to use development / sandbox environment. 现在,无论应用程序的目标/发行版如何进行测试,我现在都将推送服务器(Pushwoosh)设置为使用开发/沙箱环境。 So now I only use one specific app target/release for App Store releases. 因此,现在我仅对App Store版本使用一个特定的应用目标/版本。

The reason why I used to use the same for App Store as for test is to ensure that everything works! 我之所以在App Store和测试中使用相同的原因是为了确保一切正常! But I cannot do that now. 但是我现在不能这样做。

Does your entitlements file include the aps-environment entitlement? 您的权利文件中是否包含aps-environment权利? Are you exporting your ad-hoc and app store builds by archiving first? 您是否要先存档来导出临时和应用商店构建? If both archived apps have the aps-environment entitlement, then your exported apps should as well. 如果两个已存档的应用程序都具有aps-environment权利,则导出的应用程序也应如此。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM