简体   繁体   中英

How can i receive notifications in webview?

First I don't mean receiving notifications from OneSignal or Firebase I mean allowing notifications like Google Chrome when you go to website and it ask you to allow receiving notifications. Any help? Thanks in advance.

Firstly that prompt you were saying is just come in website in PC brower/ Mobile Browser or in Android webview.

So, doing in webview, it won't ask you because in mobile there is no such permission you will needs to confirm, by default it will be enabled,

But yes in mobile you do need handle the notification and show in notification tray.

Hope you got the understanding of how it works

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM