the-blue-alliance / the-blue-alliance-android

An Android app for accessing information about the FIRST Robotics Competition.
MIT License
76 stars 34 forks source link

Run Notification Processing via JobScheduler API #946

Closed phil-lopreiato closed 4 years ago

phil-lopreiato commented 4 years ago

This should fix crahes like

Caused by java.lang.IllegalStateException
Not allowed to start service Intent { act=com.google.android.c2dm.intent.RECEIVE flg=0x1000010 pkg=com.thebluealliance.androidclient cmp=com.thebluealliance.androidclient/.gcm.GCMMessageHandler (has extras) }: app is in background uid UidRecord{ca22e23 u0a206 RCVR bg:+6m20s802ms idle change:uncached procs:1 seq(0,0,0)}

Because newer versions of android are more strict about running things in the background