rn-fetch-blob
rn-fetch-blob copied to clipboard
Error receiving broadcast Intent act=android.intent.action.DOWNLOAD_COMPLETE
Here is my stack trace:
java.lang.RuntimeException Error receiving broadcast Intent { act=android.intent.action.DOWNLOAD_COMPLETE flg=0x10 pkg=com.JankStudio.Mixtapes (has extras) } in com.RNFetchBlob.RNFetchBlobReq@444de0d0 LoadedApk.java:846 android.app.LoadedApk$ReceiverDispatcher$Args.run Handler.java:615 android.os.Handler.handleCallback Handler.java:92 android.os.Handler.dispatchMessage Looper.java:155 android.os.Looper.loop ActivityThread.java:5520 android.app.ActivityThread.main Method.java:-2 java.lang.reflect.Method.invokeNative Method.java:511 java.lang.reflect.Method.invoke ZygoteInit.java:1029 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run ZygoteInit.java:796 com.android.internal.os.ZygoteInit.main NativeStart.java:-2 dalvik.system.NativeStart.main
Caused by: java.lang.RuntimeException Illegal callback invocation from native module. This callback type only permits a single invocation from native code. CallbackImpl.java:28 com.facebook.react.bridge.CallbackImpl.invoke RNFetchBlobReq.java:678 com.RNFetchBlob.RNFetchBlobReq.onReceive LoadedApk.java:832 android.app.LoadedApk$ReceiverDispatcher$Args.run Handler.java:615 android.os.Handler.handleCallback Handler.java:92 android.os.Handler.dispatchMessage Looper.java:155 android.os.Looper.loop ActivityThread.java:5520 android.app.ActivityThread.main Method.java:-2 java.lang.reflect.Method.invokeNative Method.java:511 java.lang.reflect.Method.invoke ZygoteInit.java:1029 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run ZygoteInit.java:796 com.android.internal.os.ZygoteInit.main NativeStart.java:-2 dalvik.system.NativeStart.main
"react": "16.4.1", "react-native": "0.56.0",
Issue occurs on android. I have implemented downloading based on the guide.
@jankrah12 did you get this resolved ?
I have created a PR which should resolve this issue: #314
Can you help me test it and verify it's working properly?
have reproduced this crash when trying to download large mp4 file with size more then 4Gb
Yo @mark-plukkido, I'm facing this issue; can you please push the maintainers of this package to merge your PR;
My app got this issue even the rn-fetch-blob
lib version is 0.11.2
any fix for this? 0.12.0
still happen
My crashlytics log shows that for me it only crashes on Oppo phones. Even in dev mode app crashes without logging anything. I have noticed that Oppo uses a different download manger than most android devices and the error is only thrown when I try to download the second time.
My crashlytics log shows that for me it only crashes on Oppo phones. Even in dev mode app crashes without logging anything. I have noticed that Oppo uses a different download manger than most android devices and the error is only thrown when I try to download the second time.
did you find any workaround for this? i'm facing the same issue
My crashlytics log shows that for me it only crashes on Oppo phones. Even in dev mode app crashes without logging anything. I have noticed that Oppo uses a different download manger than most android devices and the error is only thrown when I try to download the second time.
did you find any workaround for this? i'm facing the same issue
Ok I had to put a bandage fix around it. I stopped the user from downloading the file if they've already done it and I just show a success message. It seems to have done the trick although we've noticed a rare crash then and again
I'm still facing the issue. Any updates?
I'm still facing the issue. Any updates?
Yet to check with the new update. I think they've pushed a fix
Yup, can confirm, still crashing second time on download.
Hi, I'm still facing the issue. Any updates?
i solved this issue with adding a unique postfix on the filename to prevent duplication