Open your own AIR application via URL?

I would like people to be able to run the Native AIR application through the URL. My AIR application has read some parameters on it and will open in the correct state.

Thus, if used, someone will browse our site, then click the link, and he will open his own desktop application for the correct content associated with their link.

I know iTunes does this, and other apps support it.

I know that the AIR (non-native) installer also supports this.

I do not know if I can do this with my own AIR application (.exe or .dmg install).

Edit: this is for the desktop.

+5
source share
3 answers

, , .

- allowBrowserInvocation true:    (Http://livedocs.adobe.com/flex/3/html/help.html?content=File_formats_1.html#1043413)

- BrowserInvokeEvent , , :

public function onInvokeEvent(invocation:InvokeEvent):void 
{
    arguments = invocation.arguments;
    currentDir = invocation.currentDirectory;
}

- AIR APP SWF. SWF AIR, launchApplication() air.swf, http://airdownload.adobe.com/air/browserapi/air.swf air.swf SWF air.swf Application(), :

var appID:String = "com.example.air.myTestApplication";
var pubID:String = "02D88EEED35F84C264A183921344EEA353A629FD.1";
var arguments:Array = ["launchFromBrowser"]; // Optional
airSWF.launchApplication(appID, pubID, arguments);

http://livedocs.adobe.com/flex/3/html/help.html?content=app_launch_1.html#1038008

, .

+4

iphone Url- http://iosdevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html

android AndroidManifest.xml,

   <activity android:name=".MyUriActivity">
    <intent-filter>
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <data android:scheme="myapp" android:host="path" />
    </intent-filter>
   </activity>

URI Android

+5

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

,

onBrowserInvoke (: BrowserInvokeEvent): void           {               arguments = event.arguments;           }

0
source

All Articles