mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-08-03 18:08:36 +02:00
fix(notification): scheduled notifications not working (#909)
* fix(notification): scheduled notifications not working * do not use toJSON since it doesnt work on isolation pattern * fmt
This commit is contained in:
@@ -20,7 +20,7 @@ class NotificationStorage(private val context: Context, private val jsonMapper:
|
||||
val storage = getStorage(NOTIFICATION_STORE_ID)
|
||||
val editor = storage.edit()
|
||||
for (request in localNotifications) {
|
||||
if (request.isScheduled) {
|
||||
if (request.schedule != null) {
|
||||
val key: String = request.id.toString()
|
||||
editor.putString(key, request.sourceJson.toString())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user