[英]Integrating Pubnub push notifications
I'm trying to integrate Pubnub in my react-native app. 我正在尝试将Pubnub集成到我的react-native应用程序中。
I followed this guide for the platform integration : https://www.pubnub.com/docs/ios-objective-c/mobile-gateway 我遵循了该指南进行平台集成: https : //www.pubnub.com/docs/ios-objective-c/mobile-gateway
when I try to upload Apple certificate into Pubnub dashboard I get this error : error decoding pem password was given but private key is not encrypted
当我尝试将Apple证书上传到Pubnub仪表板时,出现以下错误:给出了error decoding pem password was given but private key is not encrypted
I don't fully understand what it means and how to solve this. 我不完全理解这意味着什么以及如何解决此问题。
Issue : Used a password when generating an APNS push certificate. 问题 :生成APNS推送证书时使用了密码。
Solution : regenerate the push certificate without a password and convert to .pem
again and it should work. 解决方案 :重新生成没有密码的推送证书,然后再次转换为.pem
,它应该可以工作。
Also, if you get an error uploading your .pem
file, it might be corrupted and cause a similar error. 此外,如果在上传.pem
文件时遇到错误,则该文件可能已损坏并导致类似的错误。 Same solution - try regenerating the push cert and convert to .pem
. 相同的解决方案-尝试重新生成推送证书并转换为.pem
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.