Android WebView推送通知? [英] Android WebView push notification?

查看:164
本文介绍了Android WebView推送通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要通过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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆