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
This commit is contained in:
Matthew Raymer
2025-11-12 00:57:47 -08:00
parent 64eed2d97c
commit e594006e20

View File

@@ -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")