Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Invocation Observations

New thread to gather observations and questions about the invocation framework.

 

When I launch the application by myself, I get a startupMode of 0 (launch).

 

When I invoke the app from another app, I get the same startupMode.  I would think I would get "invoke".

 

My invocation is:

var request :InvokeRequest = new InvokeRequest();
request.action = InvokeAction.OPEN;
request.target = 'com.o2interactive.magellan.compass';
			
InvokeManager.invokeManager.invoke( request );

 

Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Invocation Observations

When defining "non standard" file extensions for an app based on a file that is generated by the app that it wants to be opened when selected from the file browser, is it best to use this kind of syntax?

 

<mime-type>application/x-myext</mime-type>

 Where "myext" is the actual extension of the file.

Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Invocation Observations

For unbounded requests, how will competing targets be choosen?

 

For example, if RIM has an app A, and vendor has app B and both use the same schema for a request, how does the consumer choose app B over app A (from RIM)?

Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Invocation Observations

It appears the AIR InvoctionManager is incomplete.

It does not seem to have the queryTargets API like the Cascase API has.

 

https://developer.blackberry.com/cascades/documentation/device_platform/invocation/sending_invocatio...

 

Hope this will be in the next build.

New Developer
Posts: 21
Registered: ‎04-19-2011
My Device: Blackberry Torch 9800
My Carrier: Rogers

Re: Invocation Observations

queryTargets was included in earlier versions of the Air SDK but was removed for some reason in Beta 3.  It was mentioned in the following thread that it will return in the next release.

 

http://supportforums.blackberry.com/t5/Adobe-AIR-Development/Using-the-InvokeManager-to-query-target...