Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ios): use new badge APIs to correctly clear badge on iOS18+ #1111

Merged
merged 8 commits into from
Oct 3, 2024

Conversation

mikehardy
Copy link
Collaborator

Old workaround of using -1 on the application object no longer works

If iOS16+ use the new setBadge API and a real badge count of 0 and things appear to work

Also includes a series of commits that clean up lint errors all over, and fix up CI flakes

Peeled off from #510 as they were not related and that one will squash merge

should eliminate timeout flakiness
on iOS16+ etc there are new badging APIs and to correctly set icon
to zero on these devices you cannot use the old-api + set to -1 trick

it apparently still leaves the notification center notifications intact
though, which is nice
@mikehardy mikehardy added the pending-merge Waiting on CI or question responses to merge, but otherwise ready label Oct 3, 2024
Copy link

codecov bot commented Oct 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.08%. Comparing base (e94e40b) to head (88fac90).
Report is 9 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1111   +/-   ##
=======================================
  Coverage   77.08%   77.08%           
=======================================
  Files          32       32           
  Lines        1727     1727           
  Branches      579      579           
=======================================
  Hits         1331     1331           
+ Misses        395      343   -52     
- Partials        1       53   +52     

@mikehardy mikehardy removed the pending-merge Waiting on CI or question responses to merge, but otherwise ready label Oct 3, 2024
@mikehardy mikehardy merged commit d3b18e0 into main Oct 3, 2024
15 checks passed
@mikehardy mikehardy deleted the misc-cleanups branch October 3, 2024 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant