question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

android install apk

See original GitHub issue

const android = RNFetchBlob.android

RNFetchBlob.config({ addAndroidDownloads : { useDownloadManager : true, title : ‘awesome.apk’, description : ‘An APK that will be installed’, mime : ‘application/vnd.android.package-archive’, mediaScannable : true, notification : true, } }) .fetch(‘GET’, https://api.7q.cn:54015/up/20180907/74635b50da8bc30fce200ea053616c7b2cf64ffaed30309b803149c394628f1d.apk) .then((res) => { android.actionViewIntent(res.path(), ‘application/vnd.android.package-archive’) })

not work. help me! android 7.0+

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:21

github_iconTop GitHub Comments

22reactions
TaumuLucommented, Oct 26, 2018

Android 8+ add permission <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES"/>

11reactions
meiqi1992commented, Sep 25, 2018

need add path like this

RNFetchBlob.config({ addAndroidDownloads : { useDownloadManager : true, title : ‘awesome.apk’, description : ‘An APK that will be installed’, mime : ‘application/vnd.android.package-archive’, mediaScannable : true, notification : true, path: RNFetchBlob.fs.dirs.DownloadDir + “/fjdiatect.apk” //add } }) .fetch(‘GET’, https://api.7q.cn:54015/up/20180907/74635b50da8bc30fce200ea053616c7b2cf64ffaed30309b803149c394628f1d.apk) .then((res) => { android.actionViewIntent(res.path(), ‘application/vnd.android.package-archive’) })

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Install APK on Android - Lifewire
The easiest way to install an APK file on your Android is to download the file using the default browser, Chrome. Find a...
Read more >
How to Install APK Files on Android - groovyPost
Open your Android device's file explorer app. · Locate your APK file in your file explorer app and select it. · The APK...
Read more >
How to install third-party apps without the Google Play Store
Download the APK you want to install and make sure you have a file browser installed. · Navigate into your phone settings. ·...
Read more >
How to Enable APK Installations on Your Android Device
On your device, go to Settings. · Tap Apps & notifications > Advanced. · Tap Special app access. · Tap Install unknown apps....
Read more >
How to Install APK on Android - Javatpoint
How to install an APK on your Android device · 1. Launch your phone's Settings · 2. Go to Biometrics and security and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found