I am currently working on a video call app. I use FirebaseMessaingService to get the received message that the account is called, then start a Worker from the service, and then the worker starts an activity that displays a phone call. But it seems like it cannot start activity from service on Xiaomi devices. Could anyone help?
Xiaomi phones called workers successfully.
Before, Xiaomi couldn't even call Worker, but when I enabled autostart followed this question, it could.
I found the solution. Just go to Settings -> Permissions -> Other permissions -> App name -> enable "Display pop-up windows whie running in the background"