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
Developer
step_jac
Posts: 89
Registered: ‎05-31-2012
My Carrier: Bell
Accepted Solution

navigator_invoke messages:// with attachment?

Hello BB NDK Devs,

 

We are trying to invoke navigator_invoke() to generate an email with a user App file attached. Unfortunately, this doesn't seem to be described in the messages:// protocol in the navigator_invoke() documentation. Is there an additional parameters to do this such as messages://attachments=<comma separated paths>.

 

Thank you!

Please use plain text.
Developer
peter9477
Posts: 6,447
Registered: ‎12-08-2010
My Carrier: none

Re: navigator_invoke messages:// with attachment?

I'm fairly sure you can't do that yet, nor is there a supported API.

This sounds like what the Invocation Framework will be providing us with, and -- just guessing here -- I believe that a first version of that will be out shortly, with the Alpha update (and presumably beta Cascades SDK update) that's expected "soon".

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
Regular Contributor
sporadicsoftware
Posts: 70
Registered: ‎09-30-2011
My Carrier: Sprint

Re: navigator_invoke messages:// with attachment?

[ Edited ]

You can do this using mailto instead of messages. Check the syntax here:

http://forums.mozillazine.org/viewtopic.php?f=30&t=1172555

 

Nic

Please use plain text.
Developer
step_jac
Posts: 89
Registered: ‎05-31-2012
My Carrier: Bell

Re: navigator_invoke messages:// with attachment?

Thanks Nic,

 

That worked nicely! There are however a few gotchas:

- The file:// protocol needs to be omitted.

- It only seems to work with files located in /accounts/1000/shared. We were hope to attach some app generated data from $APPROOT/data. We were abot to work around this by copying the file to shared then attaching it. This does however mean that our app needs an additional Shared access permission just for this purpose.

 

Thanks again for your answer!

Please use plain text.