Quantcast
Channel: Adobe Community : All Content - AIR Development
Viewing all articles
Browse latest Browse all 2954

Passing app arguments via InvokeEvent or BrowserInvokeEvent in AIR for IOS doesn't work

$
0
0

Just figured I'd let everyone know that if you thought it'd be cool to let your IOS users launch your app from a link in a browser and that it would be cool to encode parameters in that URL to be passed into your app, you're out of luck.  When you add a listener to your app like...

 

NativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE, onInvoke);

 

or..

 

NativeApplication.nativeApplication.addEventListener(BrowserInvokeEvent.BROWSER_INVOKE, onBrowserInvoke);

 

It doesn't fire on an IOS device, so there's no way to get the parameters out of the arguments property.

 

The app does indeed fire from a browser if you set up your custom URL scheme properly in your app.xml file.  Framework just doesn't fire the handler function for the registered invoke listener.  The parameter retrieval code at the link below, therefore, doesn't work on an IOS device.

 

http://www.riaspace.com/2011/08/defining-custom-url-schemes-for-your-air-mobile-applicatio ns/


Viewing all articles
Browse latest Browse all 2954

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>