We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d9f2e7 commit b2b0a18Copy full SHA for b2b0a18
permissions.mm
@@ -394,8 +394,8 @@ bool HasOpenSystemPreferencesDialog() {
394
// Returns a status indicating whether the user has authorized
395
// Notifications access.
396
std::string NotificationAuthStatus() {
397
- NSURL *bundle_url = [[NSBundle mainBundle] bundleURL];
398
- if (!IsValidBundleID([bundle_url path])) {
+ NSString *bundle_id = [[NSBundle mainBundle] bundleIdentifier];
+ if (!IsValidBundleID(bundle_id)) {
399
return kNotDetermined;
400
}
401
0 commit comments