tauri-plugin-mobile-push-api 0.1.1 → 0.1.2
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/dist/index.cjs +3 -3
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -39,21 +39,21 @@ async function getToken() {
|
|
|
39
39
|
}
|
|
40
40
|
async function onNotificationReceived(handler) {
|
|
41
41
|
return (0, import_core.addPluginListener)(
|
|
42
|
-
"
|
|
42
|
+
"mobile-push",
|
|
43
43
|
"notification-received",
|
|
44
44
|
handler
|
|
45
45
|
);
|
|
46
46
|
}
|
|
47
47
|
async function onNotificationTapped(handler) {
|
|
48
48
|
return (0, import_core.addPluginListener)(
|
|
49
|
-
"
|
|
49
|
+
"mobile-push",
|
|
50
50
|
"notification-tapped",
|
|
51
51
|
handler
|
|
52
52
|
);
|
|
53
53
|
}
|
|
54
54
|
async function onTokenRefresh(handler) {
|
|
55
55
|
return (0, import_core.addPluginListener)(
|
|
56
|
-
"
|
|
56
|
+
"mobile-push",
|
|
57
57
|
"token-received",
|
|
58
58
|
handler
|
|
59
59
|
);
|
package/dist/index.js
CHANGED
|
@@ -14,21 +14,21 @@ async function getToken() {
|
|
|
14
14
|
}
|
|
15
15
|
async function onNotificationReceived(handler) {
|
|
16
16
|
return addPluginListener(
|
|
17
|
-
"
|
|
17
|
+
"mobile-push",
|
|
18
18
|
"notification-received",
|
|
19
19
|
handler
|
|
20
20
|
);
|
|
21
21
|
}
|
|
22
22
|
async function onNotificationTapped(handler) {
|
|
23
23
|
return addPluginListener(
|
|
24
|
-
"
|
|
24
|
+
"mobile-push",
|
|
25
25
|
"notification-tapped",
|
|
26
26
|
handler
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
29
|
async function onTokenRefresh(handler) {
|
|
30
30
|
return addPluginListener(
|
|
31
|
-
"
|
|
31
|
+
"mobile-push",
|
|
32
32
|
"token-received",
|
|
33
33
|
handler
|
|
34
34
|
);
|
package/package.json
CHANGED