Skip to content
This repository was archived by the owner on Apr 1, 2023. It is now read-only.

Commit 4aecd5c

Browse files
authored
fix(ios): notifications are deleted (#39)
1 parent ac6abe2 commit 4aecd5c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ios/Plugin/Badge.swift

+3-1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ import Capacitor
8686

8787
@objc private func restore() {
8888
let count = get()
89-
set(count: count, completion: {})
89+
if count > 0 {
90+
set(count: count, completion: {})
91+
}
9092
}
9193
}

0 commit comments

Comments
 (0)