How to call methods of other java classes while creating plugins for Cordova?


#1

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?


#2

You are creating plugins for Cordova, not Ionic. I changed the post title.