Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,8 @@ public static void startService(Context context, Integer jobId, Intent intent) {
JobInfo jobInfo = new JobInfo.Builder(jobId,
new ComponentName(context, JobWorkService.class))
// schedule it to run any time between 1 - 5 minutes
.setMinimumLatency(JobWorkService.ONE_MINUTE)
.setMinimumLatency(0)
.setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY)
.setOverrideDeadline(5 * JobWorkService.ONE_MINUTE)
.build();
JobScheduler jobScheduler = (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE);
Expand Down
6 changes: 4 additions & 2 deletions test-app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.optimizely.ab.android.test_app">
xmlns:tools="http://schemas.android.com/tools"
package="com.optimizely.ab.android.test_app">

<uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
Expand All @@ -31,7 +32,8 @@
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
android:theme="@style/AppTheme"
tools:ignore="GoogleAppIndexingWarning">
<service
android:name=".NotificationService"
android:exported="false" />
Expand Down