mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-15 05:31:42 +03:00
fix(core): set bundle id for notifications on macOS (#3839)
This commit is contained in:
parent
9712ed1a68
commit
f67ae6bd60
5
.changes/fix-mac-notification-appid.md
Normal file
5
.changes/fix-mac-notification-appid.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri": patch
|
||||
---
|
||||
|
||||
Set the application bundle identifier for the notifications on macOS.
|
@ -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");
|
||||
|
4
examples/api/src-tauri/Cargo.lock
generated
4
examples/api/src-tauri/Cargo.lock
generated
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user