NativeScript / nativescript-background-http

Background Upload plugin for the NativeScript framework
Apache License 2.0
102 stars 50 forks source link

Nativescript multipartUpload fails/crashes in android 31 #285

Open srikanthuppena98 opened 1 year ago

srikanthuppena98 commented 1 year ago

I have upgraded my android version from 29 to 31, in the app where i use multipartUpload as soon as I navigate the app is crashing.

Which platform(s) does your issue occur on?

Please, provide the following version numbers that your issue occurs with:

Please, tell us how to recreate the issue in as much detail as possible.

Describe the steps to reproduce it.

As soon as I navigate to the page where i use multipartUpload app crashes, I'm on android 31

I tried updating the nativescript-background-http to @nativescript/background-http: 6.0.0 then app is not crashing but there is different error "JS: ERROR TypeError: Cannot read property 'NotificationConfig' of undefined"

Please let me know which of these dependencies I have to update,

insytes commented 1 year ago

You will need to upgrade to @nativescript/background-http: 6.0.0 and make sure to import the init function and call it immediately in your main JS file.