Call this command to force a remote site opened with showRemoteSite or showRemoteSiteExt to close.
intel.xdk.device.closeRemoteSite();
Available Platforms:
- Apple iOS
- Google Android
- Microsoft Windows 8 - BETA
- Microsoft Windows Phone 8 - BETA
Example:
function onDeviceReady(){
try
{
intel.xdk.device.mainViewExecute('intel.xdk.cache.setCookie("remoteSiteCookie","'+iCookieValue+'",-1);')
intel.xdk.device.closeRemoteSite();
} catch(e) {
console.log("oops "+e);
}
}
Version:
This method is available in appMobi Version 3.0.0
English