该应用越来越注册号码,但是,当它接收到的推送通知,应用程序停止并提供了以下错误:离子2的应用程序停止每次它接收的推送通知
在机器人
林Unfortunately "APP NAME" has stopped
使用PhoneGap的-插件推=>https://ionicframework.com/docs/native/push/
我已经添加google-services.json
APPNAME /平台/ Android的内部/
这里是我的build.gradle
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
}
}
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
// SUB-PROJECT DEPENDENCIES START
debugCompile(project(path: "CordovaLib", configuration: "debug"))
releaseCompile(project(path: "CordovaLib", configuration: "release"))
compile "com.google.android.gms:play-services-maps:11.+"
compile "com.google.android.gms:play-services-location:11.+"
compile "com.stripe:stripe-android:4.1.2"
compile "com.android.support:support-v13:25.1.0"
compile "me.leolin:ShortcutBadger:[email protected]"
compile "com.google.firebase:firebase-messaging:11.0.1"
}
这里是我的AndroidManifest.xml
<application android:hardwareAccelerated="true" android:icon="@mipmap/icon" android:label="@string/app_name" android:supportsRtl="true">
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
<activity android:exported="true" android:name="com.adobe.phonegap.push.PushHandlerActivity" android:permission="${applicationId}.permission.PushHandlerActivity" />
<receiver android:name="com.adobe.phonegap.push.BackgroundActionButtonHandler" />
<receiver android:name="com.adobe.phonegap.push.PushDismissedHandler" />
<service android:name="com.adobe.phonegap.push.FCMService">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
<service android:name="com.adobe.phonegap.push.PushInstanceIDListenerService">
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
</intent-filter>
</service>
</application>
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="25" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.VIBRATE" />
是有人在这里谁经历了同样的?
我得到相同的问题,但我使用离子1为我的应用程序..如果你找到解决方案请发布.. – subha