I have implemented GcmIntentService for push notification everything was working fine but when updated version to Android 8 (Oreo) it is getting crash on oreo devices. Is it possible that I can continue uses of GcmIntentService for push notification.
Please share your view thanks in advance
Getting exception
java.lang.RuntimeException: Unable to start receiver com.example.PushNotificationReceiver:
java.lang.IllegalStateException: Not allowed to start service Intent {
act=com.google.android.c2dm.intent.RECEIVE flg=0x1000010 pkg=com.example
cmp=com.example/.pushnotification.GCMIntentService (has extras) }:
app is in background uid UidRecord{635678a u0a186 RCVR bg:+1m44s591ms idle
procs:1 seq(0,0,0)}