🐛 Bug fixes
This commit is contained in:
@@ -59,12 +59,12 @@ export const useNotifications = defineStore("notifications", () => {
|
||||
|
||||
if (Capacitor.getPlatform() === "web") {
|
||||
new Notification(data["subject"], {
|
||||
body: data["subject"]
|
||||
body: data["content"]
|
||||
})
|
||||
} else {
|
||||
LocalNotifications.schedule({
|
||||
notifications: [
|
||||
{ id: data["id"], title: data["subject"], body: data["subject"] }
|
||||
{ id: data["id"], title: data["subject"], body: data["content"] }
|
||||
]
|
||||
}).then((res) => console.log(res))
|
||||
}
|
||||
|
Reference in New Issue
Block a user