Skip to main content
Arun_Tomy-DDJQu0
Participating Frequently
July 16, 2012
Question

App is not launching from custom URL Schema

  • July 16, 2012
  • 2 replies
  • 1507 views

I am having 2 apps 1st one is developed in Air for IOS and 2nd one developed in xCode, now i need to open my 2nd app from my 1st app, So i tried custom URL schema. i create URL Schema for my 2nd app and using navigate to URL i call myApp from my 1st app. Unfortunately myApp is not getting launch! 

These are the codes i tried

var $gameAppReq:URLRequest = new URLRequest("app:/myApp");

navigateToURL($gameAppReq, "_self");

or

var $gameAppReq:URLRequest = new URLRequest("myApp:/");

navigateToURL($gameAppReq, "_self");

But none of these got worked and its not throwing any errors, Somebody out there to help me

Thanks.

This topic has been closed for replies.

2 replies

sbhave
Participating Frequently
July 16, 2012

Hi:

Confirm that the second app is set up correctly. can you post your info plist contents.

Also test both the applications indivisually.

1. Make sure first application can open custom URLs correctly. One way is to install Facebook on iOS and try opening fbauth://authorize . this should at least open Facebook application.

The correct way to navigate to other application in actionscript is

     var req:URLRequest = new URLRequest("fbauth://authorize");

     navigateToURL(req);

2. Make sure the second application can be opened by other application. You can do this simply by putting customURL in safari.

Hope this helps narrowing your problem,

Saumitra

Arun_Tomy-DDJQu0
Participating Frequently
July 16, 2012

Thank you for your reply,

My problem got solved, its not because of my code but of Air for iOS version. I was using 2.6 and after upgrade to 3.2 my code is working fine. Now i am able to launch app using " navigate to url ".