From e594006e20f57ae7398573c895d5e290db7b75ff Mon Sep 17 00:00:00 2001 From: Matthew Raymer Date: Wed, 12 Nov 2025 00:57:47 -0800 Subject: [PATCH] fix(ios): change @objc annotation to match JavaScript plugin ID Changed plugin class @objc annotation to match JavaScript plugin ID: Plugin Registration Fix: - Changed @objc(DailyNotificationPlugin) to @objc(DailyNotification) - Matches JavaScript plugin ID: 'DailyNotification' - Ensures Capacitor iOS can discover and route calls correctly Capacitor iOS Discovery: - Capacitor iOS matches plugin ID to @objc class name - JavaScript calls cap.nativePromise('DailyNotification', ...) - Swift class must be accessible as 'DailyNotification' in Objective-C Fixes: - Plugin not being discovered by Capacitor iOS - Method calls not routing to Swift implementation - Promise timeout issues Result: Capacitor should now discover the plugin and route method calls correctly --- ios/Plugin/DailyNotificationPlugin.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Plugin/DailyNotificationPlugin.swift b/ios/Plugin/DailyNotificationPlugin.swift index 5114dda..456c5e2 100644 --- a/ios/Plugin/DailyNotificationPlugin.swift +++ b/ios/Plugin/DailyNotificationPlugin.swift @@ -22,7 +22,7 @@ import os.log * @version 1.1.0 * @created 2025-09-22 09:22:32 UTC */ -@objc(DailyNotificationPlugin) +@objc(DailyNotification) public class DailyNotificationPlugin: CAPPlugin { static let logger = OSLog(subsystem: "com.timesafari.dailynotification", category: "Plugin")