Why my phone is not vibrating at the correct time? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Why my phone is not vibrating at the correct time?

In my code of a timer, I ask the user to allow sound when the time is over, and if the user does not allow to do this, I want to vibrate the phone. But my phone is vibrating after an alert of 'TIME UP', however, I want the phone to vibrate along with the alert. Can I do this? If yes, please tell me how to do this? This is my code | | \/ https://code.sololearn.com/Wj0etkhlq2LI/?ref=app

30th Mar 2020, 9:28 AM
Vasu Vijay
Vasu Vijay - avatar
2 Answers
+ 1
Hey, did you check the Browser compatibility? Maybe thats the reason why its not working.
5th Apr 2020, 7:21 AM
Pas To
Pas To - avatar
0
Pas To, I ran the code on sololearn on my phone
5th Apr 2020, 7:32 AM
Vasu Vijay
Vasu Vijay - avatar