阿里云推送
一、注册阿里云移动推送服务
1.注册阿里云移动推送服务,注册APP拿到AppKey和AppSecret
步骤参考:https://help.aliyun.com/document_detail/30054.html
2.react-native-aliyun-push安装及使用
安装:npm install react-native-aliyun-push --save react-native link react-native-aliyun-push
或者:yarn add react-native-aliyun-push (0.60.x以后)
相关配置请参考:https://www.npmjs.com/package/react-native-aliyun-push
二.应用
-
app.js中标签绑定 ,
-
点击推送内容之后列表刷新设置
-
待办角标设置;
-
Auth.js中推送tag设置
三.推送测试
1.IOS证书到appstore注册中心配置,把证书导入阿里云系统
注册参考:
2.安卓不同手机秘钥录入,第三方配置文档参考
https://help.aliyun.com/document_detail/30067.html?spm=a2c4g.11186623.6.589.598b7fa8vf9qWF