0

Currently, I am developing an Ionic2 app that should have an ability to connect automatically to paired bluetooth devices in range while beeing closed/killed in order to collect specific data.

Using this plugin https://github.com/Red-Folder/bgs-core, I am creating a background service for android.

Since most of the main app logic written in JS, I would like to know whether it is possible to call functionality written in JavaScript from cordova plugin (in case of Android from Java) while the application is closed. If yes, how can I do it?

As an alternative, are there other cordova plugins that support background execution while an app is killed?

I have found similar questions, however, none of them contains a sufficient solution:

run javascript in background service on android phonegap

How to run cordova plugin in Android background service?

Community
  • 1
  • 1

0 Answers0