Languages

Menu
Sites
Language
Gear S2 Background Vibration

I'm developing the application for Samsung Gear S2 (web) with a timer that vibrates when time ends. What I need to do so my application can vibrate even if it's in background mode and app is hidden? 
I use 

navigator.vibrate(2000);

Or how can I make notification that will pops up when time ends and after click will be maximized my app (not relaunch). 

Thanks!

Edited by: Andrew Yavorskiy on 09 Nov, 2016

Responses

3 Replies
Marco Buettner

You can use Alarm API wo showing a popup and maximize the app again ;)
 

Andrew Yavorskiy

How can I use Alarm API to maximize the app? 

Armaan-Ul- Islam