Android WebView推送通知? [英] Android WebView push notification?
问题描述
我需要通过android webview发送一个通知(不一定是 push 通知).我在
I need to send a notification (not necessarily a push notification) through an android webview. I saw that the Notification API
was not compatible with Android Webview on MDN. The other APIs I saw seemed to be based off of window.notification
.
有人知道通过android webview发送通知的任何API或JS吗?
Does anyone know of any API or JS that sends a notification through an android webview?
我看到6个月前的这篇帖子,除了含糊其词外基本上没有任何活动提到火力基地.这会有所帮助吗?
I saw this post from 6 months ago with essentially no activity except a vague mention of firebase. Would that be helpful?
感谢您的回答!
推荐答案
我没有足够的声誉"来发表评论,但这对您有用吗?
I don't have enough "reputation" to post a comment but could that be useful to you?
https://github.com/ashraf-alsamman/android-webview-app-with-push-notification
https://medium.com/shibinco/creating-a-webview-android-app-with-push-notification-7fd48541a913
希望您可以通过以下示例之一使它正常工作
Hopefuly you can make it work from one of those example
这篇关于Android WebView推送通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!