언어 설정

Menu
Sites
Language
Device vibrates even when the "Vibration" setting is OFF

Hi

We are using the device vibrator from our web app and it works fine, for example:

navigator.vibrate(300);

However, the device vibrates even when the Settings -> Sound -> Vibration is set to OFF. I expected that the OS would block vibrations when the setting is OFF. That's how iPhone works. Is this expected behavior, or a bug in Tizen?

I don't mind to check the setting and stop vibrations by myself in Javascript code, but I cannot find a way to access the setting. It appears to be possible from a native app, but not from a Web app. (One can access BATTERY, WIFI, etc., but not the Vibration setting.)

Thanks!

 

Edited by: Brock Boland on 17 3월, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

3 댓글
konduri sai swathi
Hi, when i switch off the vibration and then run the application again it's working fine (there is no vibration). Try the code from here : https://developer.tizen.org/help/topic/org.tizen.web.appprogramming/html/tutorials/w3c_tutorial/device_tutorial/managing_vibration.htm
Minovic
Thanks for your reply! What happens here with the sample you suggested is that there are no vibrations at all! Even when the Vibration setting is ON. However, the API we use is exactly the same like in the sample: navigator.vibrate() The difference is that we are calling it from our web app, while the sample is ran in the Internet browser. BTW, what's the Tizen version on you phone? Mine is 2.2.0
konduri sai swathi
Hi, Mine is the same too. I ran the code in web application. It worked for me. Try it once with that