Skip to content

Commit

Permalink
🔧 Modified notification service execution window
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio Ivanovski authored and Antonio Ivanovski committed Feb 17, 2017
1 parent 80dc15f commit e1e7cec
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import mk.ams.mladi.mladiinfo.NAV_ITEMS
import mk.ams.mladi.mladiinfo.R
import retrofit2.Call
import java.util.*
import java.util.concurrent.TimeUnit

/** Service that is responsible for retrieving and processing data from the services that will be used
* to build notifications for the user. */
Expand All @@ -33,7 +34,7 @@ class NotificationJobService : JobService() {
.setTag(NotificationJobService.SERVICE_TAG)
.setRecurring(true)
.setLifetime(Lifetime.FOREVER)
.setTrigger(Trigger.executionWindow(/* fixme */1, 1))
.setTrigger(Trigger.executionWindow(30 * 60 /*30 minutes*/, 60 * 60 /*60 minutes*/))
.setReplaceCurrent(false)
.setRetryStrategy(RetryStrategy.DEFAULT_LINEAR)
.setConstraints(Constraint.ON_ANY_NETWORK)
Expand Down

0 comments on commit e1e7cec

Please sign in to comment.