无法启动接收器com.google.firebase.iid.FirebaseInstanceIdInternalReceiver android Oreo

时间:2018-11-23 08:11:04

标签: android google-cloud-messaging android-8.0-oreo

您好,我正在使用GCM进行推送通知,在Android O WakefulBroadcastReceiver.java line 99 android.support.v4.content.WakefulBroadcastReceiver.startWakefulService上遇到很多崩溃

我没有使用FCM进行推送通知,请帮助我解决Android O中的此问题。以下是结构错误的堆栈跟踪。

Fatal Exception: java.lang.RuntimeException: Unable to start receiver com.google.firebase.iid.FirebaseInstanceIdInternalReceiver: java.lang.IllegalStateException: Not allowed to start service Intent { act=com.google.firebase.INSTANCE_ID_EVENT pkg=com.tapmad.tapmadtv cmp=com.tapmad.tapmadtv/com.google.firebase.iid.FirebaseInstanceIdService (has extras) }: app is in background uid UidRecord{b7ea475 u0a216 RCVR bg:+1m30s74ms idle procs:1 seq(0,0,0)}
   at android.app.ActivityThread.handleReceiver(ActivityThread.java:3399)
   at android.app.ActivityThread.-wrap18(Unknown Source)
   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1780)
   at android.os.Handler.dispatchMessage(Handler.java:105)
   at android.os.Looper.loop(Looper.java:164)
   at android.app.ActivityThread.main(ActivityThread.java:6944)
   at java.lang.reflect.Method.invoke(Method.java)
   at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)

0 个答案:

没有答案