Fixed
Status Update
Comments
ne...@gmail.com <ne...@gmail.com> #2
What version of Activity are you using? Upgrading your Activity dependency 1.7.2
which also depends on Lifecycle 2.6.1
should resolve this.
ra...@google.com <ra...@google.com>
su...@google.com <su...@google.com>
ap...@google.com <ap...@google.com> #3
Thanks. I stumbled upon https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:activity/activity/src/main/java/androidx/activity/ComponentDialog.kt;bpv=1;bpt=0
And see it was fixed in commit 602bac6c67b589d11f8f4d1441a4aec4dca0ee49.
Ill wait to upgrade until after that commit is in the stable release.
And see it was fixed in commit 602bac6c67b589d11f8f4d1441a4aec4dca0ee49.
Ill wait to upgrade until after that commit is in the stable release.
lo...@gmail.com <lo...@gmail.com> #4
It is stable in the releases I referenced above.
su...@google.com <su...@google.com> #5
Fragment 1.6.1 will update the dependency of Activity to 1.7.2 so you'll get this improvement by default. As mentioned above, you can add a dependency on Activity 1.7.2 right now to fix the issue as a workaround until that release comes out.
ta...@gmail.com <ta...@gmail.com> #6
I'm facing this in alpha09 on Android Pie
ta...@gmail.com <ta...@gmail.com> #7
Update: alpha09 works fine in pre-Oreo with a minimum interval of 15 minutes. Post Oreo, never gets triggered. Haven't yet checked the interference of battery optimization. Will update on the same soon.
ah...@gmail.com <ah...@gmail.com> #8
Still facing this in alpha10 on Oreo and Pie
ar...@gmail.com <ar...@gmail.com> #9
solved in alpha 11 i have not this problem but some times WorkManger run 2 times instead one Worker class in Periodic work
pr...@gmail.com <pr...@gmail.com> #10
Is there any other way to use periodic job scheduler except WorkManager,Job Creator?
Description
Version used: 1.0.0-alpha07
Devices/Android versions reproduced on: Pixel 2, Android 9 Pie
The work request below is executed once but not periodically on version alpha07, this works correctly and periodically on version alpha06
val constraints = androidx.work.Constraints.Builder()
.setRequiredNetworkType(NetworkType.CONNECTED)
.build() // Run only when network is available
val workRequest =
PeriodicWorkRequestBuilder<ReportUploader>(REPORTING_REPEAT_INTERVAL_IN_MINUTES, TimeUnit.MINUTES)
.addTag(REPORTER_TAG)
.setConstraints(constraints)
.setBackoffCriteria(BackoffPolicy.EXPONENTIAL, 10, TimeUnit.SECONDS)
.build() // Run every 15 mins
workManager
.enqueueUniquePeriodicWork(REPORTER_TAG, ExistingPeriodicWorkPolicy.KEEP, workRequest)