Open mganigapeta opened 7 years ago
What is your problem? Do you see the first alert "afterloadedok" when you shake the device? If yes then there is something wrong in your function...
first time not coming when click on any button or navigation then only you can able do shake event
Do you wait for Cordova's deviceready event before calling shake.startWatch?
yes i waited
Have a look at https://github.com/Ritzlgrmft/ionic-feedback-sample, an app using the shake event
this is my code:
if(!$window.localStorage.Shakecount){ $window.localStorage.setItem('Shakecount', 1); } if(!$window.localStorage.themecolor){ $window.localStorage.setItem('themecolor', "awesome_blue"); }