09-14-2012 08:09 AM
I have been trying to deploy my own webworks extension on BB10 to call "navigator_set_orientation()" , which is a native API. But when I deploy the application which uses this extension, the freezes on the blackberry page at the start. However, when I remove "navigator_set_orientation()" from my native code, everything works fine.
I tried a pure native app with "navigator_set_orientation()" being used and it worked fine.
I also checked the bar-descriptor.xml(from the pure native app) and blackberry-tablet.xml (hybrid app) I saw that their <action> tag is different. In the first case it was
and for the second case it was
This made me think maybe we are not allowed to access some native APIs from webworks extensions.
I was wondering if any of you experts have more knowledge about this?
Solved! Go to Solution.
10-11-2012 05:55 AM
I finally found the solution to my own issue
I forgot to add
and I had to add the bps library to the QCC Linker Libraries then everything worked fine. (by right clicking on the project properties>C/C++ Build>Settings >QCC Linker add bps to Libraries section)