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
Posts: 15
Registered: ‎03-25-2012
My Device: Torch 9800 and 9810 and Playbook
My Carrier: Rogers
Accepted Solution

webkitVibrate not working on latest Webworks and Dev Alpha OS?

My app uses the navigator.webkitVibrate function, which was working fine on the previous Dev Alpha OS and also on Webworks SDK 1.0.2.9. 

 

I updated to 1.0.3.8 and also updated Dev Alpha, and now my app is broken. The vibration doesn't work. Any thoughts? Did this change or are extra permissions required in the config.xml file? Thanks.

Highlighted
Retired
Posts: 1,561
Registered: ‎04-12-2010
My Device: BlackBerry Z10
My Carrier: Bell

Re: webkitVibrate not working on latest Webworks and Dev Alpha OS?

Hi there, can you please log this against the BlackBerry 10 WebWorks framework repository on Github to ensure that the dev teams are aware of this? Providing a JSBin or JSFiddle sample test would be ideal.
https://github.com/blackberry/BB10-WebWorks-Framework/issues

Thanks!

Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
Contributor
Posts: 15
Registered: ‎03-25-2012
My Device: Torch 9800 and 9810 and Playbook
My Carrier: Rogers

Re: webkitVibrate not working on latest Webworks and Dev Alpha OS?

Ok, I received a reply from Github....

 

It was moved:

 

navigator.webkitVibrate();

 

...now is....

 

navigator.vibrate();

 

Function name changed. I did a replace-text through all the code in my app and recompiled, not it works! THANKS so much!!!!!