Opening external browser (safari) from init.js not working

Opening external browser (safari) from init.js not working

by Daniel Romero -
Number of replies: 0

Hello, I am trying to open an instance of a browser (safari) from init.js in the mobile app using window.open but every time i am redirected to the SiteInitialPage instead of the app opening an instance of the browser. Are external browser's supported on versions 3.4.2 and 3.5.2? Any help would be appreciated.


Here is my code for init.js (using MM 3.4.2) -- Basically we check their app versions and if they have an appropriate app version they are allowed to use the app, otherwise, the app closes and prompts for another version install of the app.

Init.js

if(!isAllowedToRunApp) {
// Redirect to allowed version app
window.open(encodeURI('http://www.allowedversion123.plist/'), '_blank')
return $state.go('mm_login.version');
}

Average of ratings: -