Joaco
Joaco
Aug 28, 2017 · 1 min read

I have a question about the Jobs. Everybody is talking about them, but there’s something I can’t understand.

Let me explain my case: I’m receiving a silent push notification via GCM. When I receive it, I should start a background process that takes at least 20 seconds to be achieved. I don’t know when I’m going to receive this notification (probably my app will be in the background), so I don’t know how to achieve this. Is a Job what I need? Because I think that the use of Jobs are well suited when you have to do something related to battery charging status, WiFi connected, etc. and this is not the case. I have to do some hard background work after receiving that notification, but this is not related to the conditions needed to start a Job Scheduler.

Which alternatives do I have?

)

    Joaco

    Written by

    Joaco