FirebaseMessagingService Crashes on Android O due to background execution limits

前端 未结 3 2013
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-08 08:17

Our app is crashing on Android O due to the new background execution limits. We are on Firebase version 10.2.1, which is the one that added Android O support.

Seems

3条回答
  •  情深已故
    2020-12-08 08:55

    I've done some research about it and the best option is to transform IntentService into JobIntentService available in app compat library. It would behave like IntentService on all pre-Oreo devices. On Android 8 and above it will enqueue job to android system JobScheduler. This job by default have set deadline parameter to 0, so theoretically it should fire as fast as possible.

提交回复
热议问题