How to get events in @capacitor/Browser to send custom message to Mobile Application

Hello,

I am Using @Capacitor/Browser plugin to open my website on In-AppBrowser. i am getting two events on “.addListnerEvents” as browserLoad and BrowserFinish. I have to pass a messge from inappBrowser(website) to mobile app in between this. Earlier, I am using “ionic cordova plugin add cordova-plugin-inappbrowser” plugin in which i am getting events “.on(“message”)” which resolved my problem…
I want to know, how to do same thing with Capacitor plugin, as my application is ongoing to production and converted into Capacitor.

Please Suggest me a solution for this

Thanks

If you need events you’ll have to continue using cordova-plugin-inappbrowser.
@capacitor/browser uses Safari View Controller on iOS and Chrome Custom Tabs on android, which are more secure than using a WebView as cordova-plugin-inappbrowser does, but lack of some other features such as the communication with the app.