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
Hello,
We are using nativescript-background-http on NativeScript with Angular to upload photos.
After 3-10 uploads (we've checked that each upload is ending before a new one begins) the APP is crashing and we get this error:
System.err: An uncaught Exception occurred on "main" thread.
System.err: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{3947ebe u0 org.nativescript.MyApp/net.gotev.uploadservice.UploadService}
System.err:
System.err: StackTrace:
System.err: android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{3947ebe u0 org.nativescript.MyApp/net.gotev.uploadservice.UploadService}
System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2005)
System.err: at android.os.Handler.dispatchMessage(Handler.java:106)
System.err: at android.os.Looper.loop(Looper.java:223)
System.err: at android.app.ActivityThread.main(ActivityThread.java:7656)
System.err: at java.lang.reflect.Method.invoke(Native Method)
System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
The issue occur on:
Android 11
Devices : Google Pixel 2, Xiaomi Note 10 PRO
Version numbers:
-CLI 6.5.1 [email protected]
-tns-android": {
"version": "6.5.3"
}
nativescript-background-http is updated to the last one ^4.2.1
Hello,
We are using nativescript-background-http on NativeScript with Angular to upload photos.
After 3-10 uploads (we've checked that each upload is ending before a new one begins) the APP is crashing and we get this error:
The issue occur on:
Version numbers:
-CLI 6.5.1
[email protected]
-tns-android": {
"version": "6.5.3"
}
nativescript-background-http is updated to the last one ^4.2.1
package.json:
Can you please help with this error and the way to fix it?
Thank you
The text was updated successfully, but these errors were encountered: