fix: Request notification permission on android
This commit is contained in:
parent
565270757d
commit
6cc2c6a578
2 changed files with 7 additions and 0 deletions
|
|
@ -139,6 +139,11 @@ class BackgroundPush {
|
|||
}) async {
|
||||
if (PlatformInfos.isIOS) {
|
||||
await firebase?.requestPermission();
|
||||
} else if (PlatformInfos.isAndroid) {
|
||||
_flutterLocalNotificationsPlugin
|
||||
.resolvePlatformSpecificImplementation<
|
||||
AndroidFlutterLocalNotificationsPlugin>()
|
||||
?.requestNotificationsPermission();
|
||||
}
|
||||
final clientName = PlatformInfos.clientName;
|
||||
oldTokens ??= <String>{};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue