Skip to content

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

License

Notifications You must be signed in to change notification settings

centy/app_install_date

 
 

Repository files navigation

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

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 38.8%
  • CMake 32.2%
  • Dart 8.0%
  • Ruby 7.5%
  • Swift 4.5%
  • Kotlin 3.2%
  • Other 5.8%