FLUTTER ECOSYSTEM

Maksimka101/app_install_date

Ein Flutter-Plugin, das hilft, das Installationsdatum der App zu erhalten

Projektcover von app_install_date
Stars
5
Forks
7
Letzter Push (UTC)
23.12.2024
Projektstatus
Aktiv
Zemlianikin Max GitHub avatar
GITHUB User

Zemlianikin Max ↗

Flutter/Full-Stack developer
SprachenC++CMakeDartRubySwiftKotlinHTMLCObjective-C

Von diesem Repository veröffentlichte Pakete

Verwendete Abhängigkeiten

Abhängigkeiten 5 Einträge

Original-README

Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.

Projekt-README ein-/ausklappen

A flutter plugin that helps to get date of the app installation

[!NOTE] This plugin most likely works but is not actively maintained. If you face any issues, please create a pull request

How to use:

late String installDate;
// Platform messages may fail, so we use a try/catch 
try {
    final DateTime date = await AppInstallDate().installDate;
    installDate = date.toString();
} catch (e, st) {
    installDate = 'Failed to load install date';
}

How it works

Android

On android it is using the PackageManager to get install date from the package info

IOS and MacOS

On these platforms it is using application document directory's creation date. This method is also used in native development