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
101 KiB
101 KiB