Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't open .apk using rn-fetch-blob after download it #887

Open
JayonLiu opened this issue Feb 25, 2025 · 0 comments
Open

can't open .apk using rn-fetch-blob after download it #887

JayonLiu opened this issue Feb 25, 2025 · 0 comments

Comments

@JayonLiu
Copy link

i download a apk, i want to open it, but make a Error like this:
Error: open failed: EACCES (Permission denied)

this is my code:
RNFetchBlob.config({
addAndroidDownloads: {
useDownloadManager: true,
title: "XXXX.apk",
description: "An APK that will be installed",
mime: "application/vnd.android.package-archive",
path: ${RNFetchBlob.fs.dirs.DownloadDir}/XXXX.apk,
mediaScannable: true,
notification: true,
},
})
.fetch(
"GET",
updateInfo.downloadUrl //
)
.then((res) => {
android.actionViewIntent(
res.path(),
"application/vnd.android.package-archive"
);
})
.catch((err) => {
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant