mirror of
https://github.com/vector-im/element-ios.git
synced 2024-10-02 09:12:40 +00:00
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:
commit
bd6d471489
1 changed files with 3 additions and 0 deletions
|
@ -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"];
|
||||
|
|
Loading…
Reference in a new issue