Skip to main content

Crate tauri_plugin_android_update

Crate tauri_plugin_android_update 

Source
Expand description

§tauri-plugin-android-update

A Tauri plugin that surfaces new GitHub releases for manual download.

tauri-plugin-updater cannot be used on Android, where apps must not self-install (Google Play Store regulations). This plugin fills that gap with the check and download_and_install commands — a custom API modeled on the tauri-plugin-updater command names — backed by the latest.json update manifest that the release workflow publishes: the Tauri bundler generates it via createUpdaterArtifacts, and tauri-apps/tauri-action attaches it (signed with the updater signing key configured in the workflow) to each GitHub release. Instead of downloading and installing, download_and_install opens the release page in the default browser so the user can install manually.

The plugin registers the check and download_and_install commands under the plugin:android-update| namespace and manages the state they rely on. Grant the plugin’s default permission in the app’s capabilities for the frontend to invoke them. Register the plugin on platforms without self-install support (e.g. under #[cfg(mobile)]), where desktop apps keep using tauri-plugin-updater.

Structs§

Builder
Configures the plugin with the GitHub repository whose releases are checked for updates.
Config
The release endpoints the plugin talks to.
PendingUpdateInfo
App-managed state holding the pending update, if any.
UpdateMetadata
Metadata about an available update, as returned by check.

Functions§

check
Checks the GitHub releases of the configured repository for a version newer than the installed one, mirroring the check command of tauri-plugin-updater.
download_and_install
Opens the release page of the configured repository for the pending update, where the user can download the new version manually. Named after the download_and_install command of tauri-plugin-updater.