我有一个使用Ionic 2开发的应用程序,Ionic本身没有升级,但我将CLI从2.2.1升级到3.12.0以进行App启动性能增强(它从9秒下降到2秒)。 然而,我有一个问题,即推送通知不再到达或至少不再出现在状态栏中,如果它到达。我构建了一个Android apk并将其安装在手机上并发现了这种行为。
我在“cordova”:“6.5.0” - “@ ionic-native / push”:“^ 3.6.1”
任何帮助都非常有用,如果需要,我肯定可以发布更多代码片段。
{
"name": "Name",
"author": "author",
"homepage": "https://homepage.com",
"private": true,
"scripts": {
"ionic-serve": "ionic serve",
"build-dev": "ionic-app-scripts build --dev",
"build": "ionic-app-scripts build",
"watch": "ionic-app-scripts watch",
"serve:before": "watch",
"emulate:before": "build",
"deploy:before": "build",
"build:before": "build",
"run:before": "build"
},
"dependencies": {
"@angular/common": "2.4.8",
"@angular/compiler": "2.4.8",
"@angular/compiler-cli": "2.4.8",
"@angular/core": "2.4.8",
"@angular/forms": "2.4.8",
"@angular/http": "2.4.8",
"@angular/platform-browser": "2.4.8",
"@angular/platform-browser-dynamic": "2.4.8",
"@angular/platform-server": "2.4.8",
"@ionic-native/core": "^3.6.1",
"@ionic-native/deeplinks": "^3.6.1",
"@ionic-native/facebook": "^3.6.1",
"@ionic-native/geolocation": "^3.6.1",
"@ionic-native/google-plus": "^3.6.1",
"@ionic-native/keyboard": "^3.6.1",
"@ionic-native/push": "^3.6.1",
"@ionic-native/social-sharing": "^3.6.1",
"@ionic-native/splash-screen": "^3.6.1",
"@ionic-native/status-bar": "^3.6.1",
"@ionic/storage": "2.0.0",
"angular2-moment": "^1.0.0",
"bourbon": "^4.3.3",
"ionic-angular": "2.2.0",
"ionicons": "3.0.0",
"rxjs": "5.0.1",
"socket.io": "^1.7.1",
"socket.io-client": "^1.7.1",
"sw-toolbox": "3.4.0",
"zone.js": "0.7.2"
},
"devDependencies": {
"@ionic/app-scripts": "1.1.4",
"@types/googlemaps": "^3.26.1",
"@types/node": "^7.0.4",
"cordova": "6.5.0",
"typescript": "2.0.9"
},
"cordovaPlugins": [
"cordova-plugin-device",
"cordova-plugin-console",
"cordova-plugin-whitelist",
"cordova-plugin-splashscreen",
"cordova-plugin-statusbar",
"ionic-plugin-keyboard"
],
"cordovaPlatforms": [
{
"platform": "ios",
"version": "",
"locator": "ios"
},
{
"platform": "android",
"version": "",
"locator": "android"
}
],
"description": "ion2-FullApp: An Ionic project",
"config": {
"ionic_sass": "./config/sass.config.js"
}
}