M
M
Maxim Siomin2022-02-20 12:34:09
Android
Maxim Siomin, 2022-02-20 12:34:09

Push notifications to android app from website?

There is a simple application. Only webview with one site, nothing else. There are notifications from the site. How can I send them to the user from the application?
PS notifications are normal, like this link
https://support.google.com/chrome/answer/3220216?h...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
AlexVWill, 2022-02-20
@AlexVWill

Not sure if the webview supports PUSH, because it's still not a full browser. You can add the functionality of receiving PUSH to the application by connecting an external library, for example, Firebase Cloud Messaging
https://firebase.google.com/docs/cloud-messaging/a...
Only it will be necessary then that PUSH from Firebase comes to the site, those. everything should work within the same notification system. Well, or see if the existing system has libraries for Android.

N
Nikolay Savelyev, 2022-02-20
@AgentSmith

You can't receive notifications in WebView.
To do this, you need to implement a service that processes them, register it in the manifest.
In general, the application needs to be rewritten

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question