Beginning from Android 5.0 Lollipop version, Android had introduced Heads-up Notification. Please check this link for more information.
Example conditions that might trigger heads-up notifications include the following:
You can turn it off by asking the user to turn off Allow peeking
in the App Notifications section. Please check this link for more info.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.