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.
Related
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 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.
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 have installed onesignal push on my ionic app, it worked well but when i send web push and by clicking on that specific notification on my Android device it takes me to external browser to open that notification.
Now I want what ever type of notification i will send from one signal to my app it should only open app, not browser not more than that.
You must omit setting a Launch URL on the OneSignal dashboard or the url field if you are using the REST API. You will need to send two different notifications if you need to still direct the user to a specific URL for your web push users.
For opening a link with your app, you can use the custom-url-scheme cordova plugin . This enables you to open your app with an external link like testapp://path?foo=bar . Here is the link
I am create an application which send the notification itself who login with the app. Notifications are showing in notification tab when i open facebook in web browser.But notification are not showing in facebook native android app which is install in our device.
Can any one please help me how to resolve it?
Currently, only apps on Facebook.com can use App Notifications. Notifications are only surfaced on the desktop version of Facebook.com.
Source: https://developers.facebook.com/docs/games/notifications