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
Contributor
barkerdogg
Posts: 28
Registered: ‎04-12-2012
My Device: Torch 9800, Playbook
My Carrier: LIME

Webworks for BB10 lacking functionality that is desperately needed for app port.

Dear All,

 

I am trying to port one of my existing Webworks apps to BB10 webworks however there are a couple of APIs that i cannot seem to find equivalents for in webworks for BB10

 

(1) blackberry.app.requestForeground : I cannot find any info on what its replacement is in bb10 webworks. The question is : it it even possible to make your app force itself into the foreground any longer? and if so how can i accomplish it in webworks for bb10

 

(2) device vibration : i see references to a navigator.vibrate() function. Is this actually all i have to do in webworks for bb10? that would be great. Appreciate a Yes or No answer to this question.

 

(3) i had a custom java extension for notification led support : however i see that the community has an custom extension available for bb10 webworks to allow this. Why is this not yet built into webworks for bb10?

 

Thank you guys for your response.

Please use plain text.
BlackBerry Development Advisor
bryanhiggins
Posts: 190
Registered: ‎12-18-2012
My Device: Z10, Q10, Q5, Z30, Z3
My Carrier: Bell

Re: Webworks for BB10 lacking functionality that is desperately needed for app port.

Hi,

 

1) Not possible on the platform. You can use the notification APIs to alert the user and launch your app from the notification.

 

2) Yes - for example, navigator.vibrate(1000) will vibrate for 1 second

 

3) That hasn't been put on the roadmap yet.

 

Thanks,

Bryan

Bryan Higgins
BlackBerry WebWorks
@bryanhiggins
Please use plain text.
Contributor
barkerdogg
Posts: 28
Registered: ‎04-12-2012
My Device: Torch 9800, Playbook
My Carrier: LIME

Re: Webworks for BB10 lacking functionality that is desperately needed for app port.

Dear Developer, 

 

Thank you for your reply. I have since gotten a fair bit into my devlopment. However i need two questions desperately answer.

 

1) Does ripple support the community extensions? I downloaded the community.led extension and followed all instructions to install, put the feature id in my config.xml and ripple throws an exception saying "community not defined" or something similar

 

2) I cannot get ripple to understand navigator.vibrate. It simply reports [object] [object] [Object] has no method 'vibrate'

the code im using is simply navigator.vibrate(1000);

 

i would appreciate any help in these matters.  

 

 

Please use plain text.