Commit 26cdbd6
committed
fix: badge count not resetting when notifications are cleared
When using badge type "Increase", the cached badge value
(ONESIGNAL_BADGE_KEY) in shared UserDefaults was not explicitly
reset to zero in clearBadgeCount:fromClearAll:. If the swizzled
badge setter did not fire, the NSE would read the stale cached
value and increment from it, producing an incorrect badge count.1 parent 3092003 commit 26cdbd6
1 file changed
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
801 | 801 | | |
802 | 802 | | |
803 | 803 | | |
| 804 | + | |
| 805 | + | |
804 | 806 | | |
805 | 807 | | |
806 | 808 | | |
| |||
0 commit comments