Code Monkey home page Code Monkey logo

Comments (29)

VikasTiwari199915 avatar VikasTiwari199915 commented on August 20, 2024 5

I am also facing the same issue, Here's the exception :
java.lang.SecurityException : com.my.packagename : One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts

from fetch.

helloimfrog avatar helloimfrog commented on August 20, 2024 2

Hey, I made it work with android 14 and upgrade all dependencies to latest version. You guys can try with #665

from fetch.

kesha-antonov avatar kesha-antonov commented on August 20, 2024 2

@kesha-antonov Thx for commenting. Yeah i've seen this DownloadManager, it has almost the same capabilities but i didn't see if it has the option to resume a download from the last point it was stopped, and i need this feature. Correct me if i'm wrong.

It doesn't have option to pause/resume as I saw. But it depends on your use case. You enqueue download, app can be stopped and later after you reopen you continue download file not from zero bytes but where it stopped.

from fetch.

abbas7777 avatar abbas7777 commented on August 20, 2024 2

@fabiendem hello hear you are...
https://github.com/abbas7777/fetch2-android14

from fetch.

Kutikov avatar Kutikov commented on August 20, 2024 1

@amrashraf1992 , @ShayShimoni , @barantes , @VikasTiwari199915 , @kanglongba and everyone who wants to test by himself LASTEST VERSION download prebuild *.aar.

Give me any feedback, please!

from fetch.

Kutikov avatar Kutikov commented on August 20, 2024 1

@ShayShimoni , you can use prebuild .aar on link in prevoius comment. I'm sorry to not loading them to maven, for now I don't have enough knowledge to do this for fetch project. If someone can help me, let me know!

from fetch.

kesha-antonov avatar kesha-antonov commented on August 20, 2024 1

We can use https://developer.android.com/reference/android/app/DownloadManager as an alternative. I migrated my code to it https://github.com/kesha-antonov/react-native-background-downloader/blob/3.0.0/android/src/main/java/com/eko/RNBackgroundDownloaderModule.java

And it works quite well!

from fetch.

abbas7777 avatar abbas7777 commented on August 20, 2024 1

you can use this dependency for android 14

implementation "com.github.abbas7777:fetch2-android14:3.2.0-beta02"

from fetch.

MdAbubakar avatar MdAbubakar commented on August 20, 2024 1

@kesha-antonov Thx for commenting. Yeah i've seen this DownloadManager, it has almost the same capabilities but i didn't see if it has the option to resume a download from the last point it was stopped, and i need this feature. Correct me if i'm wrong.

It doesn't have option to pause/resume as I saw. But it depends on your use case. You enqueue download, app can be stopped and later after you reopen you continue download file not from zero bytes but where it stopped.

Thanks to see you here, as I tried to use your "@kesha-antonov/react-native-background-downloader" package and It's working fine in android 14 as well but there's no pause and resume option and I really need it so I used the old "react-native-background-downloader" package which is using Fetch library to download the contents in android and is giving the pause and resume option but that was not working in android 14 so I used this, 'implementation "com.github.abbas7777:fetch2-android14:3.2.0-beta02"' library and it fixed my problem so can you please update your library

Thanks in advance

from fetch.

barantes avatar barantes commented on August 20, 2024

My app also depends on Fetch and requires this update to adapt to Android 14.

Here's a reference of what change we're talking about: https://developer.android.com/about/versions/14/behavior-changes-14#runtime-receivers-exported

Thanks.

from fetch.

ShayShimoni avatar ShayShimoni commented on August 20, 2024

I'm also facing the same issue. Please update itπŸ™πŸ½

from fetch.

amrashraf1992 avatar amrashraf1992 commented on August 20, 2024

Hey, I made it work with android 14 and upgrade all dependencies to latest version. You guys can try with #665

How to use that one man?

from fetch.

Kutikov avatar Kutikov commented on August 20, 2024

Try it out: new prereleases using the code of @helloimfrog from pull request #665

Please give me any feedback!

https://github.com/Kutikov/fetch2-android/releases/tag/3.2.1-android14

from fetch.

ShayShimoni avatar ShayShimoni commented on August 20, 2024

@Kutikov Hello thank you for the update. I've tried to add the lib with implementation "androidx.tonyodev.fetch2:xfetch2:3.2.2" but it doesn't find it nor 3.2.1, How can i import this lib you updated to Android 14 through a dependency?

from fetch.

ShayShimoni avatar ShayShimoni commented on August 20, 2024

@kesha-antonov Thx for commenting. Yeah i've seen this DownloadManager, it has almost the same capabilities but i didn't see if it has the option to resume a download from the last point it was stopped, and i need this feature. Correct me if i'm wrong.

from fetch.

fabiendem avatar fabiendem commented on August 20, 2024

@abbas7777 Can you share a link to the fork/repository as well please?

from fetch.

LeoRudra avatar LeoRudra commented on August 20, 2024

@Kutikov can you please upload the prebuild aar files , with the proguard customized ?

Problems occuring : can't see the public classes of the libraries and javadoc is removed .

Here are some rules that you can add :
-keep public class * { *; }
-keepattributes SourceFile,LineNumberTable, Annotation

from fetch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.