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
osus
Posts: 213
Registered: ‎04-26-2012
My Device: Z10
My Carrier: Vodafone

(bb10) Invoke events do not work on Alpha device (works on simulator)

[ Edited ]

Hi all!

 

I have my incoke target working fine on simulator, when I download a file of registered types, it opens my app. That's great!

But it does not work on Alpha device, same code returns "Can't open file" on device.

 

This is my definition on bar descriptor:

 

    <invoke-target id="com.xplota.playepub.app">
        <invoke-target-name>Playepub Book Reader</invoke-target-name>
        <invoke-target-type>application</invoke-target-type>
        <filter>
            <action>bb.action.OPEN</action>
            <mime-type>application/epub+zip </mime-type>
            <mime-type>application/octet-stream</mime-type>
            <mime-type>text/*</mime-type>
            <mime-type>application/x-mobipocket-ebook</mime-type>
            <mime-type>application/pdf</mime-type>
            <mime-type>application/x-pdf</mime-type>
            <mime-type>application/vnd.amazon.ebook</mime-type>
            <mime-type>application/vnd.palm</mime-type>

            <property value="file://,http://,https://,ftp://" var="uris" />
            <property value="epub,mobi,fb2,pdf,prc,azw,pdb" var="exts" />
        </filter>
    </invoke-target>

 

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 events do not work on Alpha device (works on simulator)

Where did you get this definition? I dont think you need invoke-target-name, and I have not seen that before. Queries get the name without this. Dont know what invoke-target-type is, I just have <type>APPLICATION</type> and that seems to work for me on the device.
Please use plain text.
Developer
osus
Posts: 213
Registered: ‎04-26-2012
My Device: Z10
My Carrier: Vodafone

Re: (bb10) Invoke events do not work on Alpha device (works on simulator)

I Don't remember where I got it from some weeks ago.

I had also tried with type with no luck, it works always on simulator but never on device, it always says something like "File can't be opened".

 

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 events do not work on Alpha device (works on simulator)

Is your type "APPLICATION" and not "application"? There is something wrong with your definition, because (at least for me), invocation is working fine on the dev alpha devices.
Please use plain text.
Developer
osus
Posts: 213
Registered: ‎04-26-2012
My Device: Z10
My Carrier: Vodafone

Re: (bb10) Invoke events do not work on Alpha device (works on simulator)

Yes jtegen, I've tried everything and always the same, works on simulator but does not on device:

 

    <invoke-target id="com.xplota.playepub.app">
        <type>APPLICATION</type>
        <filter>
            <action>bb.action.OPEN</action>
            <mime-type>application/epub+zip </mime-type>
            <mime-type>application/octet-stream</mime-type>
            <mime-type>text/*</mime-type>
            <mime-type>application/x-mobipocket-ebook</mime-type>
            <mime-type>application/pdf</mime-type>
            <mime-type>application/x-pdf</mime-type>
            <mime-type>application/vnd.amazon.ebook</mime-type>
            <mime-type>application/vnd.palm</mime-type>

            <property value="file://,http://,https://,ftp://" var="uris" />
            <property value="epub,mobi,fb2,pdf,prc,azw,pdb" var="exts" />
        </filter>
    </invoke-target>

 

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 events do not work on Alpha device (works on simulator)

How are you invoking your app? Code?
Please use plain text.
Developer
osus
Posts: 213
Registered: ‎04-26-2012
My Device: Z10
My Carrier: Vodafone

Re: (bb10) Invoke events do not work on Alpha device (works on simulator)

Download any supported file as on invoke target  from native we browser and when finished click on it to open, on browser downloads.

On simulator opens my app with file path and works really fine, on device returns an error opening file.

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 events do not work on Alpha device (works on simulator)

It may not be your app. We have poked someone to look at this.
Please use plain text.
BlackBerry Development Advisor
shaque
Posts: 234
Registered: ‎07-14-2008
My Device: Not Specified

Re: (bb10) Invoke events do not work on Alpha device (works on simulator)

[ Edited ]

Hello,

I am assuming the files are downloaded in the shared space. Does your application have permission for shared area access? On simulator permissions are ignored.

 

Cheers.

Shadid

Please use plain text.
Developer
osus
Posts: 213
Registered: ‎04-26-2012
My Device: Z10
My Carrier: Vodafone

Re: (bb10) Invoke events do not work on Alpha device (works on simulator)

Yes, of course. My app has an internal file browser to open files and it works fine.

The event is never receives on app and web browser returns "error opening".

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.