mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Fix notification delivery after powering on a device. (#5035)
* Debugging with Notifications. * Don't run the NSE until the device is unlocked. * Let the NSE run long enough to deliver the default notification content. Turns out that exit(0) results in the notification be discarded when you have the notification filtering entitlement. * Remove debugging notifications. --------- Co-authored-by: Stefan Ceriu <stefanc@matrix.org>
This commit is contained in:
@@ -29,15 +29,15 @@ final class AppDelegate: NSObject, UIApplicationDelegate {
|
||||
NSTextAttachment.registerViewProviderClass(PillAttachmentViewProvider.self, forFileType: InfoPlistReader.main.pillsUTType)
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
|
||||
callbacks.send(.registeredNotifications(deviceToken: deviceToken))
|
||||
}
|
||||
|
||||
|
||||
func application(_ application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: Error) {
|
||||
callbacks.send(.failedToRegisteredNotifications(error: error))
|
||||
}
|
||||
|
||||
|
||||
func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask {
|
||||
orientationLock
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user