Android service plugin for Android in the phone

I am new to the phone. I want to create a plugin in phonegap using Android background image services. I need to constantly call this service every 5 seconds. Please help me do this. Thank you for your attention.

+4
source share
2 answers

You can achieve this using an asynchronous task.

0
source

I'm not sure exactly what you need, but I achieved something similar by creating a phonegap pluggin that writes data to a static class where I store the information. Then, when I need to access it from javascript, the plugin just asks for a static class. Is this what you tried to accomplish?

0
source

Source: https://habr.com/ru/post/1402257/


All Articles