Feature/7555 migration part 3

This commit is contained in:
Arnfried Griesert
2026-03-17 13:55:15 +00:00
committed by SDE GitLab
parent 4515ab49e4
commit 585f4a852d
14 changed files with 283 additions and 84 deletions

View File

@@ -90,9 +90,17 @@ Matrix session observer used to detect new opened sessions.
{
self.registrationForRemoteNotificationsCompletion = completion;
dispatch_async(dispatch_get_main_queue(), ^{
[[UIApplication sharedApplication] registerForRemoteNotifications];
});
// BWI #7555 migration part 3
if([[BWIBuildSettings shared] BuMXMigrationInfoLevel] < 2) {
dispatch_async(dispatch_get_main_queue(), ^{
// Even after we unregistered from Apples push service we must make sure that
// the app will not register again. After reaching migration level 3 this app should neither show
// remote notifications any more nor register for new notifications.
[[UIApplication sharedApplication] registerForRemoteNotifications];
});
}
// BWI #7555 END
}
- (void)didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken