if (MGWT.getFormFactor().isPhone() && (MGWT.getOsDetection().isAndroid() || MGWT.getOsDetection().isIOs())) {
final InAppBrowserReference ref = phoneGap.getInAppBrowser().open(url, "", "");
ref.addExitHandler(new ExitHandler() {
@Override
public void onExit(ExitEvent event) {
Window.Location.reload();
ref.close();
}
});
}
pg.initializePhoneGap();final InAppBrowserReference ref = pg.getInAppBrowser().open(url, "_system", "location=yes,presentationstyle=pagesheet,toolbarposition=bottom");
ref.addExitHandler(new ExitHandler() {
@Overridepublic void onExit(ExitEvent event) {Window.Location.reload();ref.close();}
});