所以我试图从 firebase 和 react-native-push-notifications 接收推送通知。react-native-push-notifications on android 其工作完美。
我的问题仅在 IOS 上。我已经按照push-notification-ios安装没有结果。
包.json :
{
"name": "app",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"start": "react-native start",
"test": "jest",
"lint": "eslint ."
},
"dependencies": {
"@react-native-community/push-notification-ios": "^1.4.0",
"@react-native-community/toolbar-android": "^0.1.0-rc.2",
"@react-native-firebase/app": "^8.3.1",
"@react-native-firebase/messaging": "^7.7.2",
"axios": "^0.19.2",
"react": "16.13.1",
"react-native": "0.63.2",
"react-native-document-picker": "^3.5.4",
"react-native-image-crop-picker": "^0.32.2",
"react-native-image-picker": "2.3.1",
"react-native-mail": "^5.0.1",
"react-native-permissions": "^2.1.5",
"react-native-push-notification": "^5.0.1",
"react-native-restart": "^0.0.17",
"react-native-vector-icons": "^7.0.0",
"react-native-webview": "^10.4.0"
},
"devDependencies": {
"@babel/core": "^7.11.1",
"@babel/runtime": …Run Code Online (Sandbox Code Playgroud) push-notification apple-push-notifications ios firebase-cloud-messaging react-native-ios
ios ×1