Preventing Possible WorkManager Issues

We use WorkManager in Reteno SDK. If you are using WorkManager in your project, you can face WorkManager initialization issues.

If you do, consider removing default WorkManager initializer:

 <provider
    android:name="androidx.startup.InitializationProvider"
    android:authorities="${applicationId}.androidx-startup"
    tools:node="remove">
 </provider>

And implement a configuration provider in your Application class:

class MyApplication extends Application implements Configuration.Provider {
    @Override
    public Configuration getWorkManagerConfiguration() {
        return new Configuration.Builder()
                .setMinimumLoggingLevel(android.util.Log.INFO)
                .build();
    }
}
class MyApplication() : Application(), Configuration.Provider {
     override fun getWorkManagerConfiguration() =
           Configuration.Builder()
                .setMinimumLoggingLevel(android.util.Log.INFO)
                .build()
}

You can find more information in official WorkManager custom initialization documentation .