4

According to the Constraint class of Firebase Job dispatcher, we can perform jobs when network is connected, or charging, etc.

How to perform a job when the internet is disconnected. Here is a similar question that went unanswered.

Debanjan
  • 2,817
  • 2
  • 24
  • 43
  • That's not a similar question, that's an exact duplicate. Please provide a use case for such feature, perhaps there is a better way than a job dispatcher. – Eugen Pechanec Dec 28 '17 at 12:06
  • What's a better way? Is it broadcast receiver? If yes, why? – androider Dec 28 '17 at 14:12
  • When the network is gone, I want to change the display and I will also stop the mqtt service, and again start it, when the device finds a network. As far as I know use of network connectivity change broadcast is discouraged. – Debanjan Dec 28 '17 at 19:14
  • Check whether the internet is available inside the jobService and perform according to the availability – Paras Watts Mar 22 '18 at 04:06
  • Remove the network constraint so that job can run even when there is no network. – Paras Watts Mar 22 '18 at 04:06

0 Answers0