I'm trying to open my mobile application using javascript inside iframe. It works fine in most of devices ( Android web browsers, iPhone firefox, iPhone Edge ) but doesn't work in iPhone Safari browser.
These are the codes that I've tried.
function openApp(){
document.location = "myapp://someUrl"; // opening my app
}
function openAppTry2(){
location.href = "myapp://someUrl"; // opening my app
}
It works fine if it's not in iframe , but has no reponse when the function is called from inside iframe.