views:

26

answers:

2

Hi, I Create a web application that when I click on button this open another application installed on iphone. I call another application with this code:

window.launchAPP = function() { setTimeout(function() { window.location = 'http://www.app.com/' }, 500); window.location = 'app://';
};

This work fine if my webapp is called from safari. If I call webapp from my menu, after "add to home screen", other application is not called and I have this error message: "cannot open app. App could not be opened. the error was the url can't be shown:".

Where is my mistake??? Best Regards

Samantha

+1  A: 

Launching Your Own Application via a Custom URL Scheme

Like in android the best choice is registering your custom URL Scheme.

Jorgesys
A: 

Thanks for reply. I've already registered the application url and it works if I launch my app from the web page, but whenever I add the page to the favourites in the home and open the page from the new icon the app will not be launched anymore.

(I wanted to add a comment to your reply but I can't find how, sorry) Best Regards Samantha

samantha