I\'m developing my custom calling app, like skype and I need to show \"incoming call\" screen to user, when I receive fcm message. I use full screen intent notification for
Add following code in your CallActivity:
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED| WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON|WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
PS:It's java code,if you use kotlin then change it by yourself.