I’ve played (on macOS 10.15) a bit with UNUserNotificationCenter and always getting the authorization error “Notifications are not allowed for this application”.
Not sure, but it seems the root of this error is unsigned/unnotarized application.
hebasto renamed this:
RFC: Migration from NSUserNotificationCenter to UNUserNotificationCenter
RFC: Migration from NSUserNotificationCenter to UNUserNotificationCenter on macOS
on Oct 24, 2020
hebasto added the label
Brainstorming
on Mar 5, 2021
hebasto added the label
macOS
on Mar 5, 2021
hebasto
commented at 4:14 pm on February 13, 2024:
member
In response to concerns raised in #114, it appears that migrating to the new UNUserNotificationCenter remains the only viable option. Therefore, I conducted further research and discovered the following:
The UNUserNotificationCenter requires two conditions to be met in order to be granted permissions from the OS:
The software must be bundled. **
The software must be signed.
This means that running ./src/qt/bitcoin-qt will not generate any notifications. Users must bundle it using make deploy, self-sign it with codesign -s - ./Bitcoin-Qt.app, and then run it using open ./Bitcoin-Qt.app.
If these limitations are acceptable for macOS users and developers, I am ready to continue working in this direction.
** Notes:
Our current hack with the substitution of the bundleIdentifier method does not help.
Sjors
commented at 11:29 am on February 15, 2024:
member
I think (2) is fine. We already sign the release build, and anyone who can compile from source can run the extra codesign command (maybe as part of make deploy?).
If (1) just means that they have to use make deploy in order to get notifications working, that seems fine.
alfonsoromanz
commented at 10:32 am on February 22, 2024:
contributor
I was not familiar with the process of bundling and signing the application, however I ran the commands mentioned (make deploy, codesign -s - ./Bitcoin-Qt.app, and open ./Bitcoin-Qt.app) and the app ran with no issues. Having said that, I don’t see an issue in having to run those commands in order to make notifications work when compiling the code
fanquake referenced this in commit
d3c76a2e87
on Mar 6, 2024
fanquake referenced this in commit
8b7630cb1f
on Mar 7, 2024
fanquake referenced this in commit
67fb94ce42
on Mar 7, 2024
kevkevinpal referenced this in commit
474d486752
on Mar 13, 2024
kevkevinpal referenced this in commit
ebc3c67d85
on Mar 13, 2024
janus referenced this in commit
891a7edb19
on Apr 6, 2024
luke-jr referenced this in commit
8d3448c59b
on Jun 13, 2024
hebasto
commented at 8:16 am on September 24, 2025:
member
This is a metadata mirror of the GitHub repository
bitcoin-core/gui.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2025-10-11 04:20 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me