6

I configured a periodic work manager request and seems like it's working on Pixel(Android version 9.0) but fails on Samsung device which is also running on 9.0

//Work manager request
final PeriodicWorkRequest workRequest = new PeriodicWorkRequest.Builder(MyWorker.class, 1, TimeUnit.HOURS).build();

WorkManager.getInstance().enqueueUniquePeriodicWork("My_TASK", ExistingPeriodicWorkPolicy.REPLACE, workRequest);

// My worker
public class MyWorker extends Worker {

public MyWorker(@NonNull Context context, @NonNull WorkerParameters workerParams) {
    super(context, workerParams);
}

@NonNull
@Override
public Result doWork() {
    //some work
    return Result.success();
}
}
Nikhil
  • 91
  • 1
  • 7
  • 1
    Can you add some information about the failure you see on the Samsung device? Do you have any log? – pfmaggi Jul 15 '19 at 19:47
  • @pfmaggi I added the same logic to a different project which doesn't have firebase config and it seems like working fine. I will try to get some more info on this and get back to you. – Nikhil Jul 16 '19 at 16:58
  • 1
    have you resolved this issue? what you have done – Murali Ganesan Jun 16 '20 at 11:27

0 Answers0