https://github.com/solid-software/flutter_notification_settings
🔔Check if app notifications are enabled on your device.
https://github.com/solid-software/flutter_notification_settings
Last synced: 9 months ago
JSON representation
🔔Check if app notifications are enabled on your device.
- Host: GitHub
- URL: https://github.com/solid-software/flutter_notification_settings
- Owner: solid-software
- License: bsd-3-clause
- Created: 2019-02-14T17:28:49.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-10-05T15:48:24.000Z (over 4 years ago)
- Last Synced: 2023-08-20T22:00:21.293Z (over 2 years ago)
- Language: Ruby
- Homepage:
- Size: 63.5 KB
- Stars: 4
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Flutter Notification Settings
This plugin allows you to check if notifications are enabled on your device.
To learn more about the notifications, follow the link:
[for Android](https://developer.android.com/guide/topics/ui/notifiers/notifications) and
[for iOS](https://developer.apple.com/design/human-interface-guidelines/ios/system-capabilities/notifications).
## Getting started
To check if notifications are enabled just copy this code or follow [example](https://github.com/solid-software/flutter_notification_settings/tree/master/example):
```dart
bool isNotificationsEnabled = await FlutterNotificationSettings.notificationsEnabled;
```
For checking your Android Version just add to your code:
```dart
String androidVersion = await FlutterNotificationSettings.platformVersion;
```
## Current issues
Current issues list [is here](https://github.com/solid-software/flutter_notification_settings/issues).
Found a bug? [Open the issue](https://github.com/solid-software/flutter_notification_settings/issues/new).