Custom JobIntentService onHandleWork not called

前端 未结 12 1202
-上瘾入骨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:50

    I had the same issue after upgrading from IntentService to JobIntentService. Make sure you remove this method from your old implementation:

    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }
    

    For me this solved the problem, and now it works both on pre- and post-Oreo.

提交回复
热议问题