问题
I have an application name com.example.xyz that is right now on the play store. I used Android studio Latest 4.0 to build it.
After Serval days of testing what I notice that the Periodic work manager for android os 27,28,29 does not work if the app is killed from the background with and without proguard .The device tested was on one plus 7T and Nokia 5.1+
Later I build the same code with different application id name and on android studio 3.6. I found out the work manager was now working flawlessly. But when I changed back the application id back to com.example.xyz. It again stopped working.
In this entire process, I clean build entire Gradle build the new app with an android studio with the same app id , But it was not working.
I concluded that there is some problem with Android Studio 4.0 for work manager. The strangest thing was the application id . That I don't know how to tackle this.
The application works on Nokia 5.1+ with the same method but not with one plus 7T or any other one plus devices.
来源:https://stackoverflow.com/questions/62848021/android-studio-work-manager-strange-behaviour