chore: Follow up request iOS permissions
This commit is contained in:
parent
69711506ea
commit
2625e89a33
1 changed files with 3 additions and 0 deletions
|
|
@ -306,6 +306,9 @@ class BackgroundPush {
|
|||
Logs().v('Setup firebase');
|
||||
if (_fcmToken?.isEmpty ?? true) {
|
||||
try {
|
||||
if (PlatformInfos.isIOS) {
|
||||
await firebase?.requestPermission();
|
||||
}
|
||||
_fcmToken = await firebase?.getToken();
|
||||
if (_fcmToken == null) throw ('PushToken is null');
|
||||
} catch (e, s) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue