使用Rocket Chat React Native为iOS实现推送通知的问题

时间:2018-08-10 12:20:29

标签: ios react-native apple-push-notifications rocket.chat

我正在尝试使用ios应用程序实现推送通知,因为我测试了.pem文件的正常运行,并且能够发送推送通知,但是由于无法从火箭聊天应用程序获取推送通知。实际上,我没有找到有关如何通过火箭聊天激活推送通知的指南。

这是我遵循的步骤。

这是我的火箭聊天推送设置:here

here

按照以下说明进行操作:

https://github.com/raix/push/blob/v3.x/docs/IOS.md

让我知道我错了

1 个答案:

答案 0 :(得分:0)

我不确定,但是我认为您需要禁用网关。来自Rocket.Chat文档:

    Go to “Administration”, then “Push”
    Set the Enable Gateway to False, then you will use your own
    Rocket.Chat as gateway instead of the https://rocket.chat server
    Restart server

 Now you should be able to Send a test message. 
Make sure that you have logged in to  the server once, and then closed 
the app. You should see a test notification after you pressed the 
send button.