@burdenoff/fe-libs 2026.1012.6 → 2026.1013.1
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.
|
@@ -51,6 +51,10 @@ async function l(t, r = {}) {
|
|
|
51
51
|
}), await u.addListener("notificationActionPerformed", (e) => {
|
|
52
52
|
let t = e, i = c(t);
|
|
53
53
|
i && n(i), r.onNotificationAction?.(t);
|
|
54
|
+
}), d === "android" && await u.createChannel({
|
|
55
|
+
id: "default",
|
|
56
|
+
name: "Notifications",
|
|
57
|
+
importance: 4
|
|
54
58
|
}), (await u.checkPermissions()).receive === "granted") {
|
|
55
59
|
let { token: e } = await u.getToken();
|
|
56
60
|
i(e, d), r.onToken?.(e, d);
|
|
@@ -194,6 +194,11 @@ export interface PushNotificationsLike {
|
|
|
194
194
|
getToken(): Promise<{
|
|
195
195
|
token: string;
|
|
196
196
|
}>;
|
|
197
|
+
createChannel(options: {
|
|
198
|
+
id: string;
|
|
199
|
+
name: string;
|
|
200
|
+
importance?: number;
|
|
201
|
+
}): Promise<void>;
|
|
197
202
|
addListener(eventName: 'tokenReceived' | 'notificationReceived' | 'notificationActionPerformed', listener: (payload: unknown) => void): Promise<CapacitorListenerHandleLike>;
|
|
198
203
|
}
|
|
199
204
|
export type UpdaterLoader = () => Promise<{
|