Skip to content

Commit

Permalink
Merge pull request #3823 from Navid200/Navid_2024_12_15
Browse files Browse the repository at this point in the history
Daily intent service no charging requirement
  • Loading branch information
jamorham authored Dec 31, 2024
2 parents af24beb + da311e1 commit 75a5268
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 75a5268

Please sign in to comment.