为什么推送通知在 testflight 上不起作用? [英] Why push notifications is not working on testflight?

查看:79
本文介绍了为什么推送通知在 testflight 上不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经将推送通知作为开发者帐户进行了测试并且它有效,但是当我尝试将其放在 TestFlight 上以供测试人员测试时,它没有显示推送通知,但数据已正确接收,所以有吗我需要为 TestFlight 生成一种证书?

I have tested push notifications as a developer account and it worked, But when i tried to put it on TestFlight for the testers to test it, it didn't show a push notification but the data is correctly received, So is there a kind of certificate that i need to generate for TestFlight?

推荐答案

但是当我尝试将其放在 TestFlight 上供测试人员进行测试时,它没有显示推送通知,但数据已正确接收.

But when i tried to put it on TestFlight for the testers to test it, it didn't show a push notification but the data is correctly received.

这句话令人困惑.如果没有收到推送通知,正确接收到哪些数据?

That sentence is confusing. If you didn't get the push notification, what data is correctly received?

无论如何,如果我没记错的话,对于 TestFlight,您使用的是 AdHoc 配置文件,它适用于生产推送环境.因此,您需要一个生产推送证书才能推送到通过 TestFlight 安装该应用程序的设备.此外,请不要忘记开发设备令牌与生产设备令牌不同,因此请确保使用正确的令牌.

Anyway, if I recall correctly, for TestFlight you are using an AdHoc provisioning profile, which works with the production push environment. Therefore you'll need a production push certificate in order to push to devices that installed the app via TestFlight. In addition, don't forget that development device tokens are different than production device tokens, so make sure you are using the correct tokens.

这篇关于为什么推送通知在 testflight 上不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆