I had some trouble locating a sample of the Browser Invoke
Event, where you can pass parameters from the Javascript in your
badge install, so I'm posting this in case it helps someone else.
In your badge, add:
so.addVariable("appinstallarg", "yoursampledata"); // remember that Adobe has a restricted type of characters you can pass in...
In your app code:
air.NativeApplication.nativeApplication.addEventListener(air.BrowserInvokeEvent.BROWSER_IN VOKE, onInvokeEvent);
function onInvokeEvent(e) {
arguments = e.arguments;
air.Introspector.Console.log( arguments );
}
In your badge, add:
so.addVariable("appinstallarg", "yoursampledata"); // remember that Adobe has a restricted type of characters you can pass in...
In your app code:
air.NativeApplication.nativeApplication.addEventListener(air.BrowserInvokeEvent.BROWSER_IN VOKE, onInvokeEvent);
function onInvokeEvent(e) {
arguments = e.arguments;
air.Introspector.Console.log( arguments );
}