From e7c5b5de5160f3d82fc9c36bc5185b5c6e091e9e Mon Sep 17 00:00:00 2001
From: Matthias Nott <mnott@mnsoft.org>
Date: Wed, 01 Apr 2026 13:06:18 +0200
Subject: [PATCH] fix: clear badge on app open, add clearBadge method

---
 ios/Runner/AppDelegate.swift |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swift
index e437af6..194fe1c 100644
--- a/ios/Runner/AppDelegate.swift
+++ b/ios/Runner/AppDelegate.swift
@@ -15,6 +15,12 @@
     GeneratedPluginRegistrant.register(with: engineBridge.pluginRegistry)
   }
 
+  // Clear badge when app becomes active
+  override func applicationDidBecomeActive(_ application: UIApplication) {
+    super.applicationDidBecomeActive(application)
+    application.applicationIconBadgeNumber = 0
+  }
+
   // Forward APNs token registration to the push plugin
   override func application(
     _ application: UIApplication,

--
Gitblit v1.3.1