do-not-disturb | Control the macOS Do Not Disturb feature | Runtime Evironment library
kandi X-RAY | do-not-disturb Summary
kandi X-RAY | do-not-disturb Summary
Control the macOS `Do Not Disturb` feature
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of do-not-disturb
do-not-disturb Key Features
do-not-disturb Examples and Code Snippets
Community Discussions
Trending Discussions on do-not-disturb
QUESTION
Problem: Notifications created on the Apple Watch are only intermittently alerting the user to their existence. When swiping down from the top of the screen, Notification Center shows that the notification was received. Why are we not getting the alert every time?
We are setting notifications using Apple's recommended approach as outlined in the documentation for UNUserNotifications (), and we are using a custom static note interface.
We did not implement userNotificationCenter: willPresentNotification: withCompletionHandler:
Our app is not on screen: the Apple Watch is in sleep mode but unlocked, or on the watch face, or on the app picker screen.
It should be observed that the notification is scheduled between 15 seconds to 5 minutes into the future.
Yes, the Settings are such that ALL notifications should be alerting the user (do-not-disturb, deliver quietly, app permissions, the list goes on).
...ANSWER
Answered 2019-Mar-01 at 03:34Identified Problem: Even when the screen dims/sleeps, the app might still be in the foreground.
Identified Solution:
Implement the UNUserNotificationCenterDelegate
method userNotificationCenter: willPresentNotification: withCompletionHandler:
and return UNNotificationPresentationOptionAlert
or similar constant.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install do-not-disturb
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page