The following code creates a JavaScript function that can forward the WebView events to native code. code to pass webview events to native code The above code is all we need to handle the events for both iOS and Android. So it is all we need on WebView side. However, on the native side, we have to fetch the passed events in iOS and Android separately. Next, we have to update the native code for both iOS and Android to collect the events from WebView and pass it to the firebase SDK.