Skip to content

Commit b2b0a18

Browse files
committed
fix: passing bundle id in NotificationAuthStatus
1 parent 7d9f2e7 commit b2b0a18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

permissions.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,8 @@ bool HasOpenSystemPreferencesDialog() {
394394
// Returns a status indicating whether the user has authorized
395395
// Notifications access.
396396
std::string NotificationAuthStatus() {
397-
NSURL *bundle_url = [[NSBundle mainBundle] bundleURL];
398-
if (!IsValidBundleID([bundle_url path])) {
397+
NSString *bundle_id = [[NSBundle mainBundle] bundleIdentifier];
398+
if (!IsValidBundleID(bundle_id)) {
399399
return kNotDetermined;
400400
}
401401

0 commit comments

Comments
 (0)