
我尝试在mt应用程序上实现Expo Notification,
连线非常好,在我的上一个博览会应用中,它运作良好,但现在却不行,
可能是因为版本更新了
当我尝试博览会文档中的代码时,这是显示
Error: Couldn't get GCM token for device这是pacage.Json:
我的package.Json:
{ "name": "blabla", "version": "0.1.0", "private": true, "devDependencIEs": { "babel-plugin-transform-decorators-legacy": "^1.3.5", "jest-expo": "~27.0.0", "react-native-scripts": "1.14.0", "react-test-renderer": "16.3.1" }, "main": "./node_modules/react-native-scripts/build/bin/crna-entry.Js", "scripts": { "start": "react-native-scripts start", "eject": "react-native-scripts eject", "androID": "react-native-scripts androID", "ios": "react-native-scripts ios", "test": "jest" }, "jest": { "preset": "jest-expo" }, "dependencIEs": { "es6-symbol": "^3.1.1", "expo": "^29.0.0", "firebase": "^5.4.1", "mobx": "^4.3.1", "mobx-react": "^5.1.0", "react": "16.3.1", "react-native": "~0.55.2", "react-native-animatable": "^1.3.0", "react-native-ionicons": "^0.2.2", "react-native-progress": "^3.5.0", "react-native-simple-toast": "0.0.8", "react-navigation": "^2.11.0" }}解决方法:
只需使用expo start代替react-natives-scripts start来修复它即可.
如果您遇到expo-cli错误,请运行npm install expo-cli –global.
您可以找到与此错误here相关的更多讨论
总结以上是内存溢出为你收集整理的android-Expo推送通知-错误:无法获取设备的GCM令牌全部内容,希望文章能够帮你解决android-Expo推送通知-错误:无法获取设备的GCM令牌所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)