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
Trusted Contributor
osus
Posts: 200
Registered: ‎04-26-2012
My Device: Z10
My Carrier: Vodafone
Accepted Solution

(bb10) invoke from native web browser share action

Hi guys!

I want my app to can receibe "share actions" from web browser so as I can add urls to my app. I've been making some tests registering invoke target but it is never displayed from browser share action.

I have something like this:

 

  <invoke-target id=my.share.id"">
    <type>APPLICATION</type>
       <filter>
             <action>bb.action.SHARE</action>
             <mime-type>text/*</mime-type>
             <property var="uris" value="http://, https://"/>
       </filter>
  </invoke-target>

 

but browser share shows only BBM and BBM group. Ive also tried with "OPEN" and nothing.

Any idea?

 

My apps for Playbook: PlayEpub Book Reader with epub and FB2 support, Google Reader, ReaditLater - Net Files Share Explorer Get access to your network shared files- FFSync Sync your Firefox bookmarks and passwords
Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: (bb10) invoke from native web browser share action

I read somewhere that you cannot have wildcard mime types. Try text/html to see if that works.

In your driver app, are you doing a query to see if your app gets returned?
Please use plain text.
Trusted Contributor
osus
Posts: 200
Registered: ‎04-26-2012
My Device: Z10
My Carrier: Vodafone

Re: (bb10) invoke from native web browser share action

Found it!

 

<mime-type>*</mime-type>

 

and it works!


I have tired

<mime-type>*/*</mime-type>

And it returned an error, but * works fine and it's showed on browser!

My apps for Playbook: PlayEpub Book Reader with epub and FB2 support, Google Reader, ReaditLater - Net Files Share Explorer Get access to your network shared files- FFSync Sync your Firefox bookmarks and passwords
Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: (bb10) invoke from native web browser share action

Good to know. Thanks for sharing.
Please use plain text.