android - Custom JobIntentService onHandleWork not called -


i updating app work on handle notifications push using jobintentservice instead of regular intentservice because seems correct way handle on pre-lollipop devices post. enqueueing work such:

enqueuework(context, myjobserviceextension.class, job_id, work);

this manifest declaration:

<service android:name="com.example.myjobserviceextension" android:permission="android.permission.bind_job_service" android:exported="true" tools:node="replace">

i never see callbacks in onhandlework or error logs in logcat. has integrated help?

update: tested on api level 21 device , worked.. doesn't seem getting called on android o pixel xl device.. clues why?

update #2: seem seeing intentservice's oncreate called, none of other lifecycle methods (including onhandlework). has encountered either?

i had same issue after upgrading intentservice jobintentservice. make sure remove method old implementation:

@override public ibinder onbind(intent intent) {     return null; } 

for me solved problem, , works both on pre- , post-oreo.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -