Comments (12)
@jaeopt thanks so much for the quick response- we do not use a custom WorkManager configuration (and therefore do not set Configuration.Provider
)
from android-sdk.
@upside-sarah We'll continue looking into the issue and get you updated.
from android-sdk.
@upside-sarah Thanks for sharing. We'll take a look.
from android-sdk.
@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
from android-sdk.
@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!
from android-sdk.
@upside-sarah it's a good idea. We'll get you updated when we find more info on the issue.
from android-sdk.
@jaeopt Update: we removed all references of EventRescheduler
in our latest app version, but we are still seeing this issue reported for that release in the Play Store. Would love any additional guidance here. Thank you!
from android-sdk.
@upside-sarah It does not make sense that EventRescheduler
is still called even after the receiver has been removed from the manifest. We'll look into it.
Can you confirm that those new crashes come from EventRescheduler
and also if you do not register it programmatically anywhere in your app?
from android-sdk.
@jaeopt I agree that it doesn't make sense 😅
- confirmed that the issue is coming from
EventRescheduler
. We're seeing the same stacktrace as before:
Exception java.lang.RuntimeException: Unable to start receiver com.optimizely.ab.android.event_handler.EventRescheduler: java.lang.IllegalStateException: WorkManager is not initialized properly. You have explicitly disabled WorkManagerInitializer in your manifest, have not manually called WorkManager#initialize at this point, and your Application does not implement Configuration.Provider.
- we don't have any references to
EventRescheduler
in our app (searching the entire codebase for "EventRescheduler" returns nothing)
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.
from android-sdk.
@upside-sarah we found why you get the call even after EventRescheduler
link is removed. In SDK 3.10.0+, the receiver is declared in the SDK manifest, which will be automatically merged into your final app manifest (so you do not need to declare the receiver again in your app manifest).
You can disable the receiver from our SDK with this ("remove") in your manifest -
<receiver
android:name="com.optimizely.ab.android.event_handler.EventRescheduler"
tools:node="remove">
</receiver>
Let us know if it works for you.
from android-sdk.
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!
from android-sdk.
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.
from android-sdk.
Related Issues (20)
- slack test
- Optimizely does not initialize without proguard rule for Gson HOT 6
- Update SDK's dependencies HOT 2
- ConcurrentModificationException in NotificationManager.addHandler() HOT 3
- Issues targeting android 12 (API 31) HOT 5
- StrictMode violation due to Deflater.end() not being called HOT 1
- `updateConfigOnNewDatafile` does nothing HOT 2
- Unable to exclude users from experiment HOT 4
- isFeatureEnabled is failing some times HOT 2
- List all Flags available HOT 2
- AD Blocker is blocking the data sync HOT 2
- `Parcel.createExceptionOrNull` due to too many scheduled jobs HOT 5
- DatafileClient should specify read/write timeout on urlConnection HOT 3
- 2 files found with path 'android-logger.properties' from inputs HOT 6
- Wrong conversion rates while tracking feature flags HOT 2
- Crash with java.lang.ExceptionInInitializerError caused by java.lang.IllegalStateException: FileLogger is not initialized. Forgot to call Log4O.init()? HOT 6
- Reporting a vulnerability HOT 1
- ResourcesNotFoundException thrown during initialisaiton HOT 3
- [BUG] Setting initialize()'s updateConfigOnNewDatafile=false is ignored by DefaultDatafileHandler HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-sdk.