Skip to content

Commit

Permalink
Daily intent service no charging requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
Navid200 committed Dec 19, 2024
1 parent d829e21 commit da311e1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ public static void schedule() {
new JobRequest.Builder(TAG)
.setPeriodic(Constants.DAY_IN_MS, Constants.HOUR_IN_MS * 12)
.setRequiresDeviceIdle(true)
.setRequiresCharging(true)
// .setRequiresCharging(true) // If the battery level is not low, we should run even if it is not being charged.
.setRequiresBatteryNotLow(true)
.setRequiredNetworkType(JobRequest.NetworkType.UNMETERED)
.setUpdateCurrent(true)
.build()
Expand Down

0 comments on commit da311e1

Please sign in to comment.