mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-17 23:18:27 +02:00
Feature/7555 migration part 3
This commit is contained in:
committed by
SDE GitLab
parent
4515ab49e4
commit
585f4a852d
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user