Revert "chore: Follow up request iOS permissions"

This reverts commit 2625e89a33.
pull/733/head v1.25.0
Krille 1 week ago
parent 2625e89a33
commit 2e40c432a3
No known key found for this signature in database
GPG Key ID: E067ECD60F1A0652

@ -72,9 +72,6 @@ class BackgroundPush {
void _init() async {
try {
if (PlatformInfos.isIOS) {
await firebase?.requestPermission();
}
await _flutterLocalNotificationsPlugin.initialize(
const InitializationSettings(
android: AndroidInitializationSettings('notifications_icon'),
@ -150,6 +147,9 @@ class BackgroundPush {
Set<String?>? oldTokens,
bool useDeviceSpecificAppId = false,
}) async {
if (PlatformInfos.isIOS) {
await firebase?.requestPermission();
}
if (PlatformInfos.isAndroid) {
_flutterLocalNotificationsPlugin
.resolvePlatformSpecificImplementation<
@ -306,9 +306,6 @@ 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…
Cancel
Save