remote_in_app_update 0.0.1 copy "remote_in_app_update: ^0.0.1" to clipboard
remote_in_app_update: ^0.0.1 copied to clipboard

PlatformAndroid

Download and install APK files directly from a URL with progress support.

remote_in_app_update #

pub package likes pub points popularity

A Flutter plugin to download and install remote APKs directly from your app with support for progress, download speed, and estimated time remaining (ETA).

⚠️ Android only


✨ Features #

  • πŸ“₯ Download APK from any URL
  • πŸ“Š Real-time progress tracking
  • ⚑ Download speed & ETA updates
  • πŸ” Secure installation using FileProvider
  • πŸ” All logic handled by plugin (Manifest, XML, etc.)
  • βœ… Just one simple API call from your Flutter app

πŸš€ Installation #

Add the plugin to your pubspec.yaml:

dependencies:
  remote_in_app_update: ^<latest_version>

Then run:

flutter pub get

πŸ› οΈ Usage #

import 'package:remote_in_app_update/remote_in_app_update.dart';

RemoteInAppUpdate().startUpdate(
  apkUrl: 'https://your-server.com/path/to/app.apk',
  onProgress: (progress) {
    print('Progress: $progress%');
  },
  onSpeed: (speed) {
    print('Speed: $speed KB/s');
  },
  onETA: (eta) {
    print('ETA: $eta seconds');
  },
  onDownloaded: () {
    print('Download complete. Installing...');
  },
  onError: (error) {
    print('Error: $error');
  },
);

🧾 Permissions #

Add the following permissions to your AndroidManifest.xml:

<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

Note: For Android 10+ (API 29+), use MANAGE_EXTERNAL_STORAGE or switch to scoped storage.


βš™οΈ Android Configuration #

No manual changes are required in your app. The plugin handles:

  • FileProvider setup
  • Manifest declarations
  • Required XML files

Everything is auto-handled within the plugin.


πŸ“¦ Example #

Check out the example app for a full working demo.


πŸ“„ License #

MIT License



Engineered by Ankit Gauswami πŸ› οΈ
Because great apps deserve better updates. πŸš€

5
likes
140
points
80
downloads

Publisher

unverified uploader

Weekly Downloads

Download and install APK files directly from a URL with progress support.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter, http, path_provider, permission_handler, plugin_platform_interface

More

Packages that depend on remote_in_app_update

Packages that implement remote_in_app_update