@choochmeque/tauri-plugin-notifications-api 0.4.3 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist-js/index.cjs +1 -1
- package/dist-js/index.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -54,7 +54,7 @@ The `push-notifications` feature is **disabled by default**. To enable push noti
|
|
|
54
54
|
|
|
55
55
|
```toml
|
|
56
56
|
[dependencies]
|
|
57
|
-
tauri-plugin-notifications = { version = "0.
|
|
57
|
+
tauri-plugin-notifications = { version = "0.4", features = ["push-notifications"] }
|
|
58
58
|
```
|
|
59
59
|
|
|
60
60
|
This enables:
|
|
@@ -85,14 +85,14 @@ To disable `notify-rust` and use native platform implementations:
|
|
|
85
85
|
|
|
86
86
|
```toml
|
|
87
87
|
[dependencies]
|
|
88
|
-
tauri-plugin-notifications = { version = "0.
|
|
88
|
+
tauri-plugin-notifications = { version = "0.4", default-features = false }
|
|
89
89
|
```
|
|
90
90
|
|
|
91
91
|
To disable `notify-rust` and enable push notifications:
|
|
92
92
|
|
|
93
93
|
```toml
|
|
94
94
|
[dependencies]
|
|
95
|
-
tauri-plugin-notifications = { version = "0.
|
|
95
|
+
tauri-plugin-notifications = { version = "0.4", default-features = false, features = ["push-notifications"] }
|
|
96
96
|
```
|
|
97
97
|
|
|
98
98
|
Configure the plugin permissions in your `capabilities/default.json`:
|
package/dist-js/index.cjs
CHANGED
|
@@ -290,7 +290,7 @@ async function removeActive(notifications) {
|
|
|
290
290
|
* @returns A promise indicating the success or failure of the operation.
|
|
291
291
|
*/
|
|
292
292
|
async function removeAllActive() {
|
|
293
|
-
await core.invoke("plugin:notifications|remove_active");
|
|
293
|
+
await core.invoke("plugin:notifications|remove_active", { notifications: [] });
|
|
294
294
|
}
|
|
295
295
|
/**
|
|
296
296
|
* Creates a notification channel.
|
package/dist-js/index.js
CHANGED
|
@@ -288,7 +288,7 @@ async function removeActive(notifications) {
|
|
|
288
288
|
* @returns A promise indicating the success or failure of the operation.
|
|
289
289
|
*/
|
|
290
290
|
async function removeAllActive() {
|
|
291
|
-
await invoke("plugin:notifications|remove_active");
|
|
291
|
+
await invoke("plugin:notifications|remove_active", { notifications: [] });
|
|
292
292
|
}
|
|
293
293
|
/**
|
|
294
294
|
* Creates a notification channel.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@choochmeque/tauri-plugin-notifications-api",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "You",
|
|
6
6
|
"description": "A Tauri v2 plugin for sending notifications on desktop and mobile platforms with support for system notifications and push delivery via FCM and APNs.",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"@vitest/coverage-v8": "^4.0.16",
|
|
41
41
|
"rollup": "^4.52.4",
|
|
42
42
|
"tslib": "^2.6.2",
|
|
43
|
-
"typescript": "^
|
|
44
|
-
"prettier": "3.8.
|
|
43
|
+
"typescript": "^6.0.2",
|
|
44
|
+
"prettier": "3.8.3",
|
|
45
45
|
"vitest": "^4.0.16"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|