diff --git a/ios/Plugin/DailyNotificationCallbacks.swift b/ios/Plugin/DailyNotificationCallbacks.swift index 530c2c5..9d9252c 100644 --- a/ios/Plugin/DailyNotificationCallbacks.swift +++ b/ios/Plugin/DailyNotificationCallbacks.swift @@ -71,29 +71,8 @@ extension DailyNotificationPlugin { // MARK: - Content Management - @objc func getContentCache(_ call: CAPPluginCall) { - Task { - do { - let cache = try await getContentCache() - call.resolve(cache) - } catch { - print("DNP-PLUGIN: Failed to get content cache: \(error)") - call.reject("Content cache retrieval failed: \(error.localizedDescription)") - } - } - } - - @objc func clearContentCache(_ call: CAPPluginCall) { - Task { - do { - try await clearContentCache() - call.resolve() - } catch { - print("DNP-PLUGIN: Failed to clear content cache: \(error)") - call.reject("Content cache clearing failed: \(error.localizedDescription)") - } - } - } + // Note: getContentCache and clearContentCache are implemented in DailyNotificationPlugin.swift + // These methods are removed to avoid duplicate declarations @objc func getContentHistory(_ call: CAPPluginCall) { Task { diff --git a/ios/Plugin/DailyNotificationPlugin.swift b/ios/Plugin/DailyNotificationPlugin.swift index cebed69..8a17c03 100644 --- a/ios/Plugin/DailyNotificationPlugin.swift +++ b/ios/Plugin/DailyNotificationPlugin.swift @@ -1334,7 +1334,7 @@ public class DailyNotificationPlugin: CAPPlugin { * Returns PermissionStatus with notifications field as PermissionState. * This is the standard Capacitor permission check format. */ - @objc func checkPermissions(_ call: CAPPluginCall) { + @objc public override func checkPermissions(_ call: CAPPluginCall) { print("DNP-PLUGIN: Checking permissions (Capacitor format)") notificationCenter.getNotificationSettings { settings in @@ -1374,7 +1374,7 @@ public class DailyNotificationPlugin: CAPPlugin { * * Standard Capacitor permission request method. */ - @objc func requestPermissions(_ call: CAPPluginCall) { + @objc public override func requestPermissions(_ call: CAPPluginCall) { // Delegate to requestNotificationPermissions requestNotificationPermissions(call) }