B
B
BonBon Slick2020-08-31 12:13:03
Apache Cordova
BonBon Slick, 2020-08-31 12:13:03

Cordova background application mode?

I tested this package , supposedly the best there is. But he is completely broken. Even if there is an example
. Moreover, it is useless for iOS, even if it supports it, but because the answer is on the stack

For iOS applications it's trickier. Apple only allows background code for a number of use cases: Audio playback, GPS tracking, others. The cordova-plugin-background-mode fakes background Audio playback to keep the app alive but it won't be accepted to the app store. My (very superficial) testing on iOS showed that when using the cordova-plugin-background-mode and actually playing background audio, my Javascript callbacks inside my app would be called erratically (called late and sometimes not called at all).


Are there existing GPS and step counter plugins that work and can work in background mode?

This stepper works in the background, but it gives incorrect data for its methods. By type, the user made 1 step, and it will return -124924856384679834570.
And geolocation, which should also work in the background, does not work on its own. And with the previously mentioned plugin-background-mode which is broken and breaks everything. There it was mentioned that
Various APIs like playing media or tracking GPS position in background might not work while in background even the background mode is active. To fix such issues the plugin provides a method to disable most optimizations done by Android/CrossWalk.


Everyone recommends doing your own service , but what's the point of making your own service for everyone, which is the same as everyone else's?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question