I Have created service using native android code to wake up the app for every 2 sec.The only problem is i am unable to call Mainactivity schedulealarm() method if i am trying to call that method from backgroundservicewithalarm class i am getting error can any one help me with this how to call?
You are creating plugins for Cordova, not Ionic. I changed the post title.