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

Web and WebWorks Development

Reply
Highlighted
Developer
Posts: 1,229
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone

Access Shared for a Native Extension

I've written an extension that embeds a web server (Mongoose) in your app

 

When I try to access shared I get...

 

Error 500: Cannot open directory Error: opendir(/accounts/1000/appdata/community.extension.webtest.testDev_ion_webteste5a9cc72/shared): Permission denied

 

My test app has  blackberry.io.sandbox set to false and has access_shared and blackberry.io in the config (i.e. WebWorks can get at shared if I want)

Is there some way my extension access shared?

 

I can look around my entire app-space apart from shared (it's rather cool actually) - its funny going into the app itself withing the app Smiley Happy Not very useful though

 

 

 

 

 

 




Click the like button if you find my posts useful!
Retired
Posts: 71
Registered: ‎09-19-2012
My Device: No sleep til BlackBerry 10
My Carrier: Bell

Re: Access Shared for a Native Extension

Are you trying to access the shared folder from the JavaScript part or from the Native layer part of your extension? From what I understand, adding the permission in the config.xml grants you access only from the webview and not your extension.
------------------------------
@grahamzibar
-_- zZZ
Developer
Posts: 1,229
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone

Re: Access Shared for a Native Extension

From a server the native NDK stuff starts




Click the like button if you find my posts useful!
Retired
Posts: 71
Registered: ‎09-19-2012
My Device: No sleep til BlackBerry 10
My Carrier: Bell

Re: Access Shared for a Native Extension

Hmmmmmm I'll see if there's a work around!
------------------------------
@grahamzibar
-_- zZZ