What the title says !
theres
A)
ionic cordova plugin add cordova-plugin-background-mode
npm install @ionic-native/background-mode
and
B)
ionic cordova plugin add cordova-plugin-foreground-service
npm install @ionic-native/foreground-service
so which one to use ? my app should run in the background and continue to sync/upload with firestore .