Files
daily-notification-plugin/test-apps
Matthew Raymer e448b06a8d fix(ios): use correct Capacitor API for plugin method registration
Fixed plugin registration to use proper Capacitor native bridge API:

API Fix:
- Changed from window.Capacitor.nativePromise to cap.nativePromise
- Added proper initialization wait for Capacitor to be available
- Wrapped in IIFE for proper scoping

Method Registration:
- All methods now use cap.nativePromise(pluginName, methodName, options)
- Methods properly bridge to native Swift implementation
- Added initialization check to wait for Capacitor if not ready

Fixes:
- Error: 'requestNotificationPermissions is not a function'
- Plugin methods now correctly call native bridge
- Proper async initialization ensures Capacitor is ready

Result: Permission buttons and all plugin methods should now work correctly
2025-11-11 23:13:40 -08:00
..
2025-10-15 10:46:50 +00:00