且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

iOS 推送通知无法使用 PHP

更新时间:2023-02-16 22:45:57

他的错误是在 ios 9 上,如果是这样,请停止使用 Objective C 中的代码并在 swift 中使用,因为它在生成 objectiv token - C for ios9 时有一个错误.我建议紧急更改您的代码.同样通过这个想法是当预定的 ios 更改为 swift 时服务器一切都解决了,我的 php 几乎相等.护理:

his mistake is with the ios 9 if so stop using the code in objective C and use in swift as it has a bug in generating objectiv token - C for ios9. I recommend urgent change your code. Also through this thought was the server when the scheduled ios changed for swift everything was resolved and my php was almost equal. Care:

            $ msg = chr (0). pack ('N', 32). pack (H * ','. '$deviceToken [0].'). pack ('N', strlen ($ payload)). $ payload;