cordova-plugin-themeablebrowser
cordova-plugin-themeablebrowser copied to clipboard
How do i manually close the browser?
I am running IOS 10.3.1, phonegap build 6.4.0.
What i am trying to achieve is to trigger the camera plugin to open/multiple image picker to open.
I see that the functions are triggered but Maybe because the browser plugin is on the top, i can't see any of those plugin's UI. So what i am trying to do is to close the browser plugin manually, then reopen it when those functions are completed.
I tried calling browser.close(); or cordova.ThemeableBrowser.close(); but nothing closes the browser. Wondering what i need to call to close it.
@clarklight hello, have you solved the problem? I meet the same problem, thank you.
I think i didnt manage to get it to work in the end, i just used the original Phonegap inappbrowser.
When you run cordova.ThemeableBrowser.open(...) it returns an instance of ThemeableBrowser that you can call close on so....
var themeableBrowser = cordova.ThemeableBrowser.open(...);
themeableBrowser.close();