简体   繁体   English

在TestFlight中切换iOS推送通知证书

[英]iOS Push notifications certificate switching in TestFlight

In the good old days of the original TestFlight I had a development certificate set for TestFlight releases and a production certificate for the live release of an app I'm working on. 在最初的TestFlight的美好时光中,我为TestFlight发行版设置了开发证书,并为我正在开发的应用程序的实时发行版设置了生产证书。 Never had any problems. 从来没有任何问题。

Since Apple took over I noticed the push notifications were failing and I discovered that the TestFlight sandbox on Apple only worked with the production certificate. 自从Apple接管以来,我注意到推送通知失败,并且我发现Apple上的TestFlight沙箱仅适用于生产证书。 This made no sense but worked. 这没有道理,但可行。 A week ago the notifications started failing once again (invalid token 8). 一周前,通知再次开始失败(令牌8无效)。 Shifting to the development certificate did the job (the way it should have originally been on the TestFlight sandbox). 转移到开发证书就可以完成工作(它原来应该在TestFlight沙箱中的方式)。

This morning the notifications are failing again and once again moving to the production certificate sent all the notifications. 今早,通知再次失败,再次移至生产证书发送了所有通知。

Now to my question, is Apple making some changes that are affecting this or am I doing something wrong? 现在我的问题是,Apple是否正在做出一些会影响到此的更改,或者我做错了什么?

For users having the same issue. 对于有相同问题的用户。 After some investigation I noticed that running an app from Xcode signs the app with a development certificate but installing the same release off Apple TestFlight does so with a production certificate. 经过一番调查后,我注意到从Xcode运行一个应用程序会使用开发证书对应用程序进行签名,但是在Apple TestFlight上安装相同的发行版则会使用生产证书进行签名。 The notifications would fail on my device since I still had the Xcode version installed rather than the TestFlight release. 通知将在我的设备上失败,因为我仍然安装了Xcode版本而不是TestFlight版本。 For some reason I never installed the final version through TestFlight but left the one deployed from Xcode. 由于某种原因,我从未通过TestFlight安装最终版本,而是从Xcode部署了最终版本。

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

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