Answer the question
In order to leave comments, you need to log in
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).
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.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question