startActvtiy in Doze mode on Android Pie

拈花ヽ惹草 提交于 2019-12-11 15:56:16

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!