Giter Club home page Giter Club logo

Comments (12)

upside-sarah avatar upside-sarah commented on June 5, 2024 1

@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.

jaeopt avatar jaeopt commented on June 5, 2024 1

@upside-sarah We'll continue looking into the issue and get you updated.

from android-sdk.

jaeopt avatar jaeopt commented on June 5, 2024

@upside-sarah Thanks for sharing. We'll take a look.

from android-sdk.

jaeopt avatar jaeopt commented on June 5, 2024

@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.

upside-sarah avatar upside-sarah commented on June 5, 2024

@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.

jaeopt avatar jaeopt commented on June 5, 2024

@upside-sarah it's a good idea. We'll get you updated when we find more info on the issue.

from android-sdk.

upside-sarah avatar upside-sarah commented on June 5, 2024

@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.

jaeopt avatar jaeopt commented on June 5, 2024

@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.

upside-sarah avatar upside-sarah commented on June 5, 2024

@jaeopt I agree that it doesn't make sense 😅

  1. 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.
  1. 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.

jaeopt avatar jaeopt commented on June 5, 2024

@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.

upside-sarah avatar upside-sarah commented on June 5, 2024

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.

Tamara-Barum avatar Tamara-Barum commented on June 5, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.