question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Web share api and web push notification are not working in webview.

See original GitHub issue

Bug 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:closed
  • Created 4 years ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
carlosalvarez91commented, Nov 12, 2019

@atultherajput could you show us how did you implement the notification service in react native webview? Thank you

1reaction
atultherajputcommented, Sep 28, 2019

Yeah, it was not possible to get push notifications from Webview. So i had to implement notification service in react native application.

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found