diff --git a/brightray/browser/mac/cocoa_notification.mm b/brightray/browser/mac/cocoa_notification.mm index 57f53931e972a..8cb7d09313a3e 100644 --- a/brightray/browser/mac/cocoa_notification.mm +++ b/brightray/browser/mac/cocoa_notification.mm @@ -13,8 +13,6 @@ namespace brightray { -int g_identifier_ = 1; - CocoaNotification::CocoaNotification(NotificationDelegate* delegate, NotificationPresenter* presenter) : Notification(delegate, presenter) {} @@ -29,7 +27,9 @@ notification_.reset([[NSUserNotification alloc] init]); NSString* identifier = - [NSString stringWithFormat:@"ElectronNotification%d", g_identifier_++]; + [NSString stringWithFormat:@"%@:notification:%@", + [[NSBundle mainBundle] bundleIdentifier], + [[[NSUUID alloc] init] UUIDString]]; [notification_ setTitle:base::SysUTF16ToNSString(options.title)]; [notification_ setSubtitle:base::SysUTF16ToNSString(options.subtitle)];