Implementing UNUserNotificationCenter
#258
Unanswered
ukane-philemon
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've spent time trying to implement notifications using the recommended
User Notifications
framework. I encountered some issues:bundleProxyForCurrentProcess is nil
: I figured out I had to build the app each time I wanted to use/test an instance ofUNUserNotificationCenter
to fix this error.Error Domain=UNErrorDomain Code=1 "Notifications are not allowed for this application" UserInfo={NSLocalizedDescription=Notifications are not allowed for this application}
: this is the weirdest of them all. I found similar issues and their resolutions but none worked for me. The macOS app is compiled by a script that does everything and I can't tell why Notifications are not allowed, despite setting all the required info in theInfo.plist
file.The app notification settings from(https://developer.apple.com/documentation/usernotifications/unusernotificationcenter/getnotificationsettings(completionhandler:)?language=objc) show I can still request for permission (i.e
authorizationStatus: NotDetermined
).@progrium, how do you think I can fix this issue? Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions