I added the Test Link button and tested it via xcode. The test link opens the url in safari so it works normally.
I then Changed the code on my other buttons from:
codevar URL = localStorage.getItem('local_connection_URL');
var Status = localStorage.getItem('connection_status');
if (Status==="connected"){
window.open(URL,"_system");
}else{
console.log("The connections has not been completed by both parties, waiting on other party");
}/code
to
code
var URL = localStorage.getItem('local_connection_URL');
var Status = localStorage.getItem('connection_status');
if (Status==="connected"){
window.open('http://www.facebook.com','_system');
}else{
console.log("The connections has not been completed by both parties, waiting on other party");
}
/code
Changing the variable in window.open() to a static address did not produce different results as it still opened 'http://www.facebook.com' inApp instead of safari.