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
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.