proyecto26 / react-native-inappbrowser

📱InAppBrowser for React Native (Android & iOS) 🤘
https://www.npmjs.com/package/react-native-inappbrowser-reborn
MIT License
1.31k stars 223 forks source link

iFrame Integration & Questions #334

Closed salorsino closed 2 years ago

salorsino commented 2 years ago

Hello,

Is it possible to use this with an iFrame? I know I can open the contents of the iFrame within this browser, that is working smooth, but the iFrame will be sending a window.postMessage() back to my application with some data.

Is it possible using this library to access the contents of window.postMessage() and also close the browser with a method/function after?

Thanks,

Sal

jdnichollsc commented 2 years ago

Sorry, that's not possible using Chrome CustomTabs from Android or SafariViewController from iOS, you have to use a WebView instead.