You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I was able to send http posts in background (after 5 minutes) with this plugin (version 2.2.0) on the Android target SDK 28 using ionic 4 and Cordova 8.1.2.
As we are all forced to use Android SDK 29 in November I migrated to Cordova 9 und upgraded this plugin to 3.0.1.
Since then I am not able to send http posts in background after 5 minutes anymore. They are postponed and sent in a burst after app returns in foreground.
Try to send something in background after 5 minutes (via some background service (foreground service with active icon)) on an Android 10 device (with target SDK 29)
mobilemarines:
i have exactly same issue.
Do you solve it?
I try adding permission, like tobika said:
It's work... but android going to remove my app from they store if i not explain why using this permission.
And.. all of my explanation not conform they...
Because they said: you not in background... you have a foreground service with an notification icon...
Describe the bug
I was able to send http posts in background (after 5 minutes) with this plugin (version 2.2.0) on the Android target SDK 28 using ionic 4 and Cordova 8.1.2.
As we are all forced to use Android SDK 29 in November I migrated to Cordova 9 und upgraded this plugin to 3.0.1.
Since then I am not able to send http posts in background after 5 minutes anymore. They are postponed and sent in a burst after app returns in foreground.
System info
Are you using ionic-native-wrapper?
Minimum viable code to reproduce
<preference name="android-targetSdkVersion" value="29" />
If applicable, add formatted sample coding to help explain your problem.
Screenshots
Hints
Since Android SDK 29 services need android:foregroundServiceType="dataSync" to be set in order to send data in background.
See:
https://developer.android.com/guide/components/foreground-services
https://developer.android.com/reference/android/R.attr#foregroundServiceType
The text was updated successfully, but these errors were encountered: