Hi,
I am currently struggling with local notifications in our "single-app-mode" - app.
Basically I will schedule a notification and play a sound once it is triggered. While the app is in foreground
is triggered like expected, and also if the device is locked (for a short time like a few secs) this works fine.
But if the device is locked a little bit longer it doesn't work - the app will be launched, but no callback seems to be triggered. (Unfortunately debugging in single-app-mode seems to be quite challenging - only "some" breakpoints are reached)
I would be happy about any experiences and links to further informations regarding the single-app-mode and its corner cases.
Thanks a lot
I am currently struggling with local notifications in our "single-app-mode" - app.
Basically I will schedule a notification and play a sound once it is triggered. While the app is in foreground
Code Block func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void)
is triggered like expected, and also if the device is locked (for a short time like a few secs) this works fine.
But if the device is locked a little bit longer it doesn't work - the app will be launched, but no callback seems to be triggered. (Unfortunately debugging in single-app-mode seems to be quite challenging - only "some" breakpoints are reached)
I would be happy about any experiences and links to further informations regarding the single-app-mode and its corner cases.
Thanks a lot