I am using Baidu Push SDK in my project. I created a broadcast receiver to receive Baidu notifications which extends PushMessageReceiver. Whenever a notification is received I perform a one-time work manager request to upload the event to our server. As the broadcast receiver runs in another process I get below exception
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.
Can someone please help me with the solution to perform my WorkManager request successfully?
Thanks in advance.