-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash in WorkerScheduler.startService #435
Comments
@upside-sarah Thanks for sharing. We'll take a look. |
@upside-sarah can you confirm if you use a custom WorkManager configuration and Configuration.Provider has been set properly? https://developer.android.com/topic/libraries/architecture/workmanager/advanced/custom-configuration |
@jaeopt thanks so much for the quick response- we do not use a custom WorkManager configuration (and therefore do not set |
@jaeopt we removed this receiver from our manifest as a short-term fix to resolve these crashes in our release, but would love to find a more permanent solution so we can add this behavior back in a future release soon! |
@upside-sarah it's a good idea. We'll get you updated when we find more info on the issue. |
@jaeopt Update: we removed all references of |
@upside-sarah It does not make sense that |
@jaeopt I agree that it doesn't make sense 😅
I don't know if there's some possibility that on upgrade, the previous receiver would be called? Otherwise, I'm unclear as to how this would be triggering. |
@upside-sarah we found why you get the call even after You can disable the receiver from our SDK with this ("remove") in your manifest -
Let us know if it works for you. |
Hi @jaeopt- that completely makes sense, we can definitely explicitly remove the EventRescheduler in our next release. Just want to confirm y'all are still looking into a solution for the greater problem (i.e. why declaring the rescheduler leads to a crash?), ideally we wouldn't have this disabled indefinitely. Thank you! |
@upside-sarah We'll continue looking into the issue and get you updated. |
Closing this open git issue as fixed per the above. we do have a backlog issue for the long-term fix tied to feature backlog. |
Optimizely version: 3.10.1
Android versions: 6.0+
We have seen a repeated crash in our app related to the event rescheduler receiver. We have seen it reported in Google Play Store, but we have not been able to reproduce this crash locally, so it appears to be flaky. We added the receiver with the intent filters as described in the docs:
Is there something else that we need to do to ensure our WorkManager is initialized here? We have not implemented a custom event handler or rescheduler, and we currently do not register any handlers in the code (we only have this change in the
AndroidManifest.xml
), but it was unclear to me in the documentation if we need to implement anything else.Thanks!
Stacktrace:
The text was updated successfully, but these errors were encountered: