android install apk
See original GitHub issueconst 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:
- Created 5 years ago
- Comments:21
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Android 8+ add permission
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES"/>
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’) })