In my Application, when a notification arrives, the BroadcastReceiver
is not called if the screen is locked.
But when screen is unlocked, the BroadcastReceiver
is called and displays the notification.
I also put the following permission in my manifest:
android.permission.WAKE_LOCK
But still not working.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…