Webview Android 应用程序中的网站通知 [英] Website notifications in Webview Android App

查看:61
本文介绍了Webview Android 应用程序中的网站通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为一个社交网络网站开发了一个 WebView 应用.我想在 WebView 应用程序中添加网站通知.当一个用户发送消息或好友请求时,第二个用户必须收到通知.

I have developed a WebView app for a social network website. I want to add notifications of the website in the WebView app. When one user sends message or friend request, the second user must get a notification.

有没有办法在 WebView 应用中显示来自网站的所有通知?

Is there any way to show all that notifications from the website in the WebView app?

请帮忙.

推荐答案

如果你想在 webview 中收到通知,那么你必须在安装应用程序时使用 firebase 注册每个设备以发送推送通知

If you want notification in webview than you must have to register every device with firebase when app installed for sending push notification

每当从 webview 执行操作而不是从后端执行操作时,推送通知将通过PayLoad"触发,然后我们使用 webview 应用程序将通知显示给一台设备到其他设备.

And whenever action is performed from webview than from backend the push notification will fire with "PayLoad" and from there we are displaying the notification to one devices to other devices using webview app.

注意:您必须使用 firebase 注册设备才能推送通知.

Note : You Must need to register device for push notification using firebase.

这篇关于Webview Android 应用程序中的网站通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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