fix(core): set bundle id for notifications on macOS (#3839)

This commit is contained in:
Lucas Fernandes Nogueira 2022-04-01 19:35:29 -07:00 committed by GitHub
parent 9712ed1a68
commit f67ae6bd60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 2 deletions

View File

@ -0,0 +1,5 @@
---
"tauri": patch
---
Set the application bundle identifier for the notifications on macOS.

View File

@ -96,6 +96,14 @@ impl Notification {
notification.app_id(&self.identifier);
}
}
#[cfg(target_os = "macos")]
{
let _ = notify_rust::set_application(if cfg!(feature = "custom-protocol") {
&self.identifier
} else {
"com.apple.Terminal"
});
}
crate::async_runtime::spawn(async move {
notification.show().expect("failed to show notification");

View File

@ -3171,7 +3171,7 @@ dependencies = [
[[package]]
name = "tauri"
version = "1.0.0-rc.5"
version = "1.0.0-rc.6"
dependencies = [
"anyhow",
"attohttpc",
@ -3289,7 +3289,7 @@ dependencies = [
[[package]]
name = "tauri-runtime-wry"
version = "0.3.4"
version = "0.3.5"
dependencies = [
"gtk",
"rand 0.8.5",