Skip to content
Advertisement

Tag: worker

Resend Retrofit API call with a OneTimeWorkRequest

I am stuck and can’t get my OneTimeWorkRequest to work properly. I have got this Retrofit API call I want to resend to the backend incase there’s no network connectivity or similar on the phone. What I can’t wrap my head around is how to pass the call to the worker. I’ve got this following code: Here’s the API Service:

Advertisement