I am trying to create plugin for counting steps for my application, but promise is not calling back method when it resolve in plugin #4843
Unanswered
preetamjakhmola
asked this question in
Q&A
Replies: 1 comment 2 replies
-
You are showing web plugin code, so your question doesn't make much sense if you say the data comes from Android native. Take a look into geolocation plugin, it uses callbacks |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am creating a plugin for my application in a capacitor. steps are counting and something data is coming from the android side. but my promise is not to call back in my ionic application. Do I need to implement Observable ? I tried that too but rxjs is not working in the application. In the first call, the promise is calling but when steps start counting some data logs in the app console but by promise don't call from my plugin.
My start method inside plugin

Returning data from Android resolve method

but unable to hit this method when steps are increasing.

Please help with this code...
Beta Was this translation helpful? Give feedback.
All reactions