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.

onMessage not working

See original GitHub issue

I have component: https://stackblitz.com/edit/react-zk4ukn

if WebView import from react-native function onMessage will log Hello React but when change it with WebView import from 'react-native-autoheight-webview' it not show console.log Hello React. How I can get event click button from html in your WebView autoheight?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
iou90commented, Jul 26, 2018

please try @0.10.0

0reactions
thangkhocommented, Jul 23, 2018

@iou90 I think you need add https://stackblitz.com/edit/react-hb1gqj?file=Hello.js It will support onMessage event

Read more comments on GitHub >

github_iconTop Results From Across the Web

Web firebase.messaging().onMessage not fired, but ...
Simple solution to this is update your Firebse to latest version.
Read more >
messaging.onMessage not firing when in foreground ... - GitHub
When the app is in background, it works flawlessly, however when in foreground, the onMessage is not being fired. const firebaseConfig = {...
Read more >
Cloud Messaging | React Native Firebase
When the application is in a background or quit state, the onMessage handler will not be called when receiving messages. Instead, you need...
Read more >
EventSource: message event - Web APIs | MDN
The message event of the EventSource API is fired when data is received through an event source. This event is not cancelable and...
Read more >
Receive messages in a JavaScript client - Firebase - Google
In order to receive the onMessage event, your app must define the Firebase messaging service worker in firebase-messaging-sw.js . Alternatively, you can provide ......
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