【发布时间】:2018-06-08 00:48:41
【问题描述】:
我一直在我的 React 原生项目 https://github.com/zo0r/react-native-push-notification 中使用这个 npm 模块来推送通知。在 Ios 上一切正常。但在 Android 上,我无法从我的 php 服务器发送推送消息。但是,我在我的 Android 设备上成功获取了设备令牌。我在 php 端使用 Api 密钥并获得错误 401 未经授权。我的php代码是从这里复制的https://gist.github.com/prime31/5675017
有什么帮助吗?
【问题讨论】:
标签: php reactjs react-native push-notification google-cloud-messaging