SimonErm/react-native-job-queue

Retry job only when internet is connected

vishgoel007 opened this issue · 3 comments

Can we retry job only when internet is connected ?
And can we retry job after some interval ?

At work i use react-native-netinfo to get the networkstate and just start the queue if internet is available. I don't know if that would fit your needs.

Retry after interval is currently not implemented. But feel free to do a PR.

@SimonErm I made it work using react-native-netinfo and setInterval for retry job after some interval.

👍