Merge pull request #1505 from vector-im/callkit_unregister_apns

Pushkit: unregister for all remote notifications received via Apple P…
This commit is contained in:
giomfo 2017-09-14 10:49:19 +02:00 committed by GitHub
commit bd6d471489

View file

@ -358,6 +358,9 @@ NSString *const kAppDelegateNetworkStatusDidChangeNotification = @"kAppDelegateN
_isAppForeground = NO;
// We use now Pushkit, unregister for all remote notifications received via Apple Push Notification service.
[[UIApplication sharedApplication] unregisterForRemoteNotifications];
// Retrieve custom configuration
NSString* userDefaults = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"UserDefaults"];
NSString *defaultsPathFromApp = [[NSBundle mainBundle] pathForResource:userDefaults ofType:@"plist"];