I have a requirment like ,i need to launch an app from a link in mail which will work for both android and iphone
i tried redirecting to webpage from link in mail and from there i ll open app based on os but this is working fine in ios,not in android. i have attached code
$(document).ready(function() {
if (navigator.userAgent.indexOf('iP') != -1) {
setTimeout(function() {
document.location = 'http://www.test.com';
}, 300);
self.location = "testapp://";
} else if (navigator.userAgent.indexOf('Android') != -1) {
document.location = 'http://www.test.com';
} else {
alert('windows');
}
});
any ideas...i am breaking my head on this req for a week .....