问题
I am developing a VoIP calling App. everything is fine on prior to Android Pie. On When device is in Doze (Deep Sleep) mode it received FCM and starts rising but it does not show the call Activity.
How can I Show Activity on Lock Screen in Doze mode on Pie ??
I am using following Flags in my call Activity.
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED
| WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD
| WindowManager.LayoutParams.FLAG_FULLSCREEN
| WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED
| WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON
| WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON
| WindowManager.LayoutParams.FLAG_ALLOW_LOCK_WHILE_SCREEN_ON);
来源:https://stackoverflow.com/questions/55776475/startactvtiy-in-doze-mode-on-android-pie