Custom JobIntentService onHandleWork not called

前端 未结 12 1180
-上瘾入骨i
-上瘾入骨i 2020-12-09 08:27

I recently was updating an app that I work on to handle notifications from push using a JobIntentService instead of a regular IntentService because

12条回答
  •  春和景丽
    2020-12-09 08:46

    If you have overridden the onCreate method in your JobIntentService, it will prevent the onHandleWork to be called.

    I converted my Service to JobIntentService and only after I removed the onCreate method it worked.

提交回复
热议问题