https://github.com/maksimka101/app_install_date
A flutter plugin that helps to get date of the app installation
https://github.com/maksimka101/app_install_date
Last synced: about 2 months ago
JSON representation
A flutter plugin that helps to get date of the app installation
- Host: GitHub
- URL: https://github.com/maksimka101/app_install_date
- Owner: Maksimka101
- License: mit
- Created: 2021-07-03T12:03:46.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-12-23T20:39:25.000Z (6 months ago)
- Last Synced: 2025-04-23T01:51:46.260Z (about 2 months ago)
- Language: C++
- Homepage:
- Size: 461 KB
- Stars: 5
- Watchers: 1
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
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 requestHow to use:
```dart
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](https://stackoverflow.com/questions/4090512/how-to-determine-the-date-an-app-is-installed-or-used-for-the-first-time)