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

Native Development

Reply
Highlighted
Developer
Posts: 64
Registered: ‎09-10-2009
My Device: Z10, Bold 9700
My Carrier: O2 Germany

Re: Access a shared file from invocation target

It looks like the system process that is displaying the toast has the necessary permissions to access the file, while 3rd party apps don't have them. I hope this will be fixed in an OS update.

 

Opening email attachments in 3rd party apps is something that could be useful for a lot of apps.

----

My Twitter: @hendrik_dev
Developer
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Access a shared file from invocation target

Here is the link to the jira issue:
https://www.blackberry.com/jira/browse/BBTEN-1200
Current status "investigating" (since 29.05.2013)
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
BlackBerry Development Advisor
Posts: 15,724
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Access a shared file from invocation target

This is looking like a bug on our side.  I don't have a workaround to provide, but will post here if one is discovered.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Visitor
Posts: 1
Registered: ‎05-07-2013
My Device: BlackBerry Z10
My Carrier: Verizon

Re: Access a shared file from invocation target

Able to reproduce this problem using the invocation framework invoking an app from an email attachment.  Using file://, mime-type=*.  Cascades app using a datafile.read(QFile).   The file exists in /accounts/1000/invoke/... of course I can't browse their from my browser or command terminal due to insufficient permissions.

 

Interesting thing, if the app is NOT running, the invoke works.  If the app is currently loaded, the read fails with an insufficient permissions error.  Gathering the logs on my device shortly to send.

 

Could I get access to that JIRA to review?

Developer
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Access a shared file from invocation target

the jira issue should be public, but right now it seems to be in maintenance mode or some such.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
BlackBerry Development Advisor
Posts: 15,724
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Access a shared file from invocation target

I've made the issue public.  You should be able to see it now.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: Access a shared file from invocation target

[ Edited ]

 another Thread I closed

http://supportforums.blackberry.com/t5/Cascades-Development/cannot-access-file-email-gt-attachment-g...

 

will follow now this Thread.

 

For me it's very important to get a solution.

 

BTW: I can verify what i read from one of the comments:

If target APP is not running and opened from Invokation, then it works and file can be read.

then it also works fore following invokations from email.

update: following invokations only working for the same file not for new ones

 

Only if APP is already running before the first invokation there are problems with permission

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
Developer
Posts: 39
Registered: ‎01-07-2009
My Device: Not Specified

Re: Access a shared file from invocation target

I too have this issue, and I can verify it works only if target app is not running when the invocation takes place.

 

This appears to have started with 10.1.x, since I didn't have the issue before.

 

I wish there was some progress on this one...