I recently was updating an app that I work on to handle notifications from push using a JobIntentService
instead of a regular IntentService
because
I think that I have such problem since I try to toast some text inside onHandleWork()
but actually the problem was that it was wrong. I should use a Handler
. It may be the problem if one uses for example AsyncTask
subclasses to execute on another thread inside onHandleWork()
which is a very bad idea.