Web share api and web push notification are not working in webview.
See original GitHub issueBug description: Web share API and web push notification are not working.
To Reproduce: I have a PWA and I opened it in webview.
<View style={{ flex: 1, backgroundColor: "red" }}>
<WebView
source={{ uri: "https://examplepwa.firebaseapp.com" }}
/>
</View>
I have implemented web share API and notification (using Firebase Cloud Messaging).
Expected behaviour: PWA is working perfectly in chrome browser. But in webview it doesn’t work. How to support these features in webview?
Environment:
- OS: Linux
- OS version: Ubuntu 16.04 LTS
- react-native version: 0.59.8
- react-native-webview version: 6.9.0
Issue Analytics
- State:
- Created 4 years ago
- Comments:12
Top Results From Across the Web
Make Web push notification work using webview in a native ...
The solution that worked for me was to find whether the website you want to display in the WebView uses WebSockets. If yes,...
Read more >765923 - Web Share API doesn't work in Android WebView
Issue 765923: Web Share API doesn't work in Android WebView ... It should be noted that Web Share API works fine in the...
Read more >Can I customize push service in WebView? - Google Groups
Hi all,. WebView does not support the Web Push Notification APIs (https://research.google.com/pubs/pub46739.html), but ...
Read more >Set up a JavaScript Firebase Cloud Messaging client app
Open the Cloud Messaging tab of the Firebase console Settings pane and scroll to the Web configuration section. In the Web Push certificates...
Read more >Managing WebView objects - Android Developers
Android provides several APIs to help you manage the WebView objects that display web content in your app. This page describes how to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@atultherajput could you show us how did you implement the notification service in react native webview? Thank you
Yeah, it was not possible to get push notifications from Webview. So i had to implement notification service in react native application.