rdelrosario / xamarin-plugins

Cross platform Xamarin & Windows plugins for PCLs
MIT License
178 stars 161 forks source link

Android 8 not getting notifications #147

Open leo-mck opened 6 years ago

leo-mck commented 6 years ago

I know this plugin is deprecated but for the time bring I cannot change backend code to FCM so I was wondering if anyone was able to make this work with the new background execution requirements on android oreo? As it is, my app is crashing with te message:

java.lang.IllegalStateException: Not allowed to start service Intent { act=com.google.android.c2dm.intent.RECEIVE flg=0x1000010 pkg=br.com.myapp cmp=br.com.myapp/pushnotification.plugin.PushNotificationGcmListener (has extras) }: app is in background uid UidRecord{fbab522 u0a247 RCVR bg:+6m55s244ms idle change:uncached procs:1 seq(0,0,0)}

aimore commented 6 years ago

Hi @leo-mck have a look at this : https://stackoverflow.com/questions/46445265/android-8-0-java-lang-illegalstateexception-not-allowed-to-start-service-inten