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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 164
Registered: ‎11-27-2012
My Device: Z10 LE,Dev Alpha C
My Carrier: China Mobile

com.blackberry.app Error when preview.

When you added com.blackberry.app plugin to your webworks 2.0 project,

and try to use: [ webworks serve ] to check out the app

it fails,and the app stops loading.

but when deployed on devices,it's OK.

 

Please fix it.

 

 

the exception stack is below:


  1. OPTIONS http://localhost:8472/com.blackberry.app/getReadOnlyFields cordova.js:823
    1. RemoteFunctionCall.makeSyncCallcordova.js:823
    2. module.exportscordova.js:860
    3. getReadOnlyFieldsclient.js:62
    4. defineReadOnlyFieldclient.js:68
    5. (anonymous function)client.js:138
    6. localRequirecordova.js:49
    7. exports.mapModulescordova.js:1085
    8. (anonymous function)cordova.js:1008
    9. Channel.firecordova.js:750
    10. (anonymous function)cordova.js:1001
    11. onScriptLoadingCompletecordova.js:1215
    12. scriptLoadedCallbackcordova.js:1232
BlackBerry Cascades / WebWorks developer, Vendor name: anpho
Retired
Posts: 203
Registered: ‎12-18-2012
My Device: Z10, Q10, Q5, Z30, Z3
My Carrier: Bell

Re: com.blackberry.app Error when preview.

Hi,

 

You cannot access plugin APIs via the "serve" command. It is meant for two purposes:

 

1. To quickly edit your display logic before deploying to device or simulator.

 

2. To avoid the need to redeploy your app after each change:

 - Add all plugins you wish to use

 - Modify config.xml, setting content src="http://<your computer's IP>:8000/index.html"

 - After each change, run "serve" and then refresh the app.

Bryan Higgins
BlackBerry WebWorks
@bryanhiggins
Developer
Posts: 164
Registered: ‎11-27-2012
My Device: Z10 LE,Dev Alpha C
My Carrier: China Mobile

Re: com.blackberry.app Error when preview.

Thanks for your reply,

but you don't get what I'm talking about.

 

when added com.blackberry.app and don't use it 

try " webworks serve " , you got error.

 

when added anything else,like com.blackberry.invoke

when use " webworks serve " ,it's all ok.

 

so you see? it's the issue in "com.blackberry.app" plugin.

 

by the way,

my plugin :

https://github.com/anpho/WebWorks-Community-APIs/tree/master/BB10-Cordova/Clipboard

and 

https://github.com/anpho/WebWorks-Community-APIs/tree/master/BB10-Cordova/Curl

don't have such errors either.

 

BlackBerry Cascades / WebWorks developer, Vendor name: anpho
Retired
Posts: 203
Registered: ‎12-18-2012
My Device: Z10, Q10, Q5, Z30, Z3
My Carrier: Bell

Re: com.blackberry.app Error when preview.

Hi,

 

I was able to do the following without any problem:

 

webworks create appserve
cd appserve
webworks plugin add com.blackberry.app
webworks serve

 Perhaps an error is being thrown inside your application code which is preventing UI logic from running. I recommend loading WebInspector to check the console for errors.

Bryan Higgins
BlackBerry WebWorks
@bryanhiggins
Developer
Posts: 30
Registered: ‎10-30-2012
My Device: Z10 Limited Edition / PlayBook / BB10 Dev A-B-C / Bold 9700
My Carrier: H3G Italy

Re: com.blackberry.app Error when preview.

Hi  :-)

 

I'm trying the porting of my WebWorks App to the newer GOLD SDK.

 

I've the same error. see

 

 

com.blackberry.app-plugin-error.png

 

The problem is that the devireready event is not fired and so there is no possibility to use the "webworks serve" utility for quickly see changes to layout!

 

In this way it's not useful.

 

If I remove the com.blackberry.app plugin I can see the app in my browser, but when deployed on the device most features don't work ( ex: swipe down menu).

 

How I can use the "webworks serve" utility adding the also the com.blackberry.app  plugin?

 

Tnx

 

MA

Contributor
Posts: 15
Registered: ‎03-16-2014
My Device: Z30
My Carrier: O2

Re: com.blackberry.app Error when preview.

I got the same issue by just trying out bfb-boilerplate. is there a version of webworks which is marked as stable? i mean not even the examples work properly.
Highlighted
Developer
Posts: 30
Registered: ‎10-30-2012
My Device: Z10 Limited Edition / PlayBook / BB10 Dev A-B-C / Bold 9700
My Carrier: H3G Italy

Re: com.blackberry.app Error when preview.

Now I use webinspector on my device after having built the .bar in debug mode. it works fine, but productivity dropped down. ripple was an optimal solutions