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.
Is there any way to show all that notifications from the website in the WebView app?
Please help.
If you want notification in webview than you must have to register every device with firebase when app installed for sending push notification
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.
Note : You Must need to register device for push notification using firebase.
Related
I have an android webview application, it is a social media application and the website is a wordpress site, the website users can see notification like message, friend request accept/send, like, comment but in webview app I wants to show the notifications badge and I also use firebase for push notification but I don't want push notification I just want app notification badge which is come from wordpress site
how can I able to do it please help me !
Thank you
I'm currently developing an app for a client, and one of its requirements is to handle notification data from FCM. I read the FCM docs and to handle FCM data when the app is background/closed, I'm using the getIntent().getExtras() method.
However, this will only work if and only if the user taps the notification banner.
So, if the user ignores the notification banner and launches the app on the home screen, there is no way of getting the data from the system tray.
So, is there a way to get the data from the system tray without tapping the notification banner?
I tried investigating other android apps' behavior, like Gmail and Outlook, by sending an email while the apps are closed.
When a notification is prompted, I put my phone in airplane mode and launch the app without tapping the notification banner.
Somehow the app was able to get the email.
So is this data from the system tray's notification?
or a query from a server (I don't know if a post request from a server is possible since the app is in the background).
If anyone can explain or give a solution, it will be a big help for my project.
I'm building a Webview (Android app) of a website that has register/login system.
Using OneSignal, now I need Android push notification to specific user that logged via the app.
Let's say:
User A has an account on www.mysite.com
The android app only loads www.mysite.com on a Webview
When User A logged in via the app, and do something, I need to send push notification to that user, to his android device
Does anyone know how to implement that?
Thank you.
I am loading my website using webview using android studio. I am able to send bulk push notification, but not able to figure out approach to send personalized push notification like any social app. Please help me in the same.
Thanks
If you are using Firebase Cloud Message to send/receive messages, you can control the notification that users see. You do this by overriding the "onMessageReceived" method and implementing whatever logic you want to show a notification on the user's device.
See the documentation for more information:
Override onMessageReceived - Firebase Cloud Message
If you are using your WebView as a WebApp, Service Worker support in chrome webview does exist for Android 5.0+ with a updated System WebView.
As mentioned in the link, each WebView is in its own sandbox so you would need to handle login each time the app is restarted. Alternatively use Chrome Custom Tabs instead as it allows for:
Shared cookie jar and permissions model so users don't have to log in to sites they are already connected to, or re-grant permissions they have already granted.
I'm building a Webview (Android app) of a website that has register/login system.
Using OneSignal, now I need Android push notification to specific user that logged via the app.
Let's say:
User A has an account on www.mysite.com
The android app only loads www.mysite.com on a Webview
When User A logged in via the app, and do something, I need to send push notification to that user, to his android device
Does anyone know how to implement that?
Thank you.