flutter_install_app

Last updated:

0 purchases

flutter_install_app Image
flutter_install_app Images
Add to Cart

Description:

flutter install app

flutter_app_installer #
A Flutter plugin for installing and/or updating applications. Supports Android & iOS. Not all methods are supported on all platforms.
This is a fork of app_installer.
iOS #

Open AppStore app page
Open AppStore app reviews

Android #

Open google play app page
Install Apk File (Detect unknown source)

Getting Started #
Open App Store #
/// App Info
String androidAppId = 'com.felipheallef.tasks';
String iOSAppId = '324684580';

AppInstaller.goStore(androidAppId, iOSAppId);
copied to clipboard
Open Review #
AppInstaller.goStore(androidAppId, iOSAppId, review: true);
copied to clipboard
Install Apk (Android-only) #

From device storage:


⚠️You need to allow read storage permission first, otherwise there will be a parsing error ⚠️

AppInstaller.installApk('/sdcard/apk/app-debug.apk');
copied to clipboard

From assets:

final file = DefaultAssetBundle.of(context).load('assets/apk/app-debug.apk');
final bytes = file.buffer.asUint8List();
AppInstaller.installApkBytes(bytes);
copied to clipboard

Without user action (Android 12 or higher):


If set, user action will not be required when all of the following conditions are met:

The app being installed targets API 30 or higher and is running on Android 12 or higher:
The app is the installer of record of an existing version of the app (in other words, this install session is an app update) or the installer is updating itself.
The installer declares the UPDATE_PACKAGES_WITHOUT_USER_ACTION permission.


AppInstaller.installApk('/sdcard/apk/app-debug.apk', actionRequired: false);
copied to clipboard

AndroidManifest.xml

<!-- Provider -->
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.fileProvider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
</provider>
copied to clipboard

android/app/src/main/res/xml/file_paths.xml

<?xml version="1.0" encoding="utf-8"?>
<paths>
<external-path path="Android/data/packagename/" name="files_root" />
<external-path path="." name="external_storage_root" />
</paths>

//Replace packagename with your app package name
copied to clipboard
Issues and feedback #
Please file issues to send feedback or report a bug. Thank you!

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.