cordova-plugin-themeablebrowser icon indicating copy to clipboard operation
cordova-plugin-themeablebrowser copied to clipboard

How do i manually close the browser?

Open clarklight opened this issue 8 years ago • 3 comments
trafficstars

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 avatar May 02 '17 06:05 clarklight

@clarklight hello, have you solved the problem? I meet the same problem, thank you.

ryanff avatar Apr 17 '18 01:04 ryanff

I think i didnt manage to get it to work in the end, i just used the original Phonegap inappbrowser.

clarklight avatar Apr 17 '18 06:04 clarklight

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();

richmoh avatar Jan 11 '19 17:01 richmoh