diff --git a/test-apps/ios-test-app/App/App/public/capacitor_plugins.js b/test-apps/ios-test-app/App/App/public/capacitor_plugins.js index dd4051c..ad9b9da 100644 --- a/test-apps/ios-test-app/App/App/public/capacitor_plugins.js +++ b/test-apps/ios-test-app/App/App/public/capacitor_plugins.js @@ -1,14 +1,75 @@ // Capacitor Plugins Registration -// This file is auto-generated by Capacitor, but we create a minimal version for testing +// This file registers the DailyNotification plugin for iOS window.Capacitor = window.Capacitor || {}; window.Capacitor.Plugins = window.Capacitor.Plugins || {}; -// Register DailyNotification plugin -// The actual plugin is registered by the native bridge +// Register DailyNotification plugin with method stubs +// Methods will be bridged to native Swift implementation window.Capacitor.Plugins.DailyNotification = window.Capacitor.Plugins.DailyNotification || { - // Plugin methods will be available after native bridge loads + // Permission methods + checkPermissionStatus: function() { + return window.Capacitor.nativePromise('DailyNotification', 'checkPermissionStatus', {}); + }, + requestNotificationPermissions: function() { + return window.Capacitor.nativePromise('DailyNotification', 'requestNotificationPermissions', {}); + }, + checkPermissions: function() { + return window.Capacitor.nativePromise('DailyNotification', 'checkPermissions', {}); + }, + requestPermissions: function() { + return window.Capacitor.nativePromise('DailyNotification', 'requestPermissions', {}); + }, + // Notification methods + scheduleDailyNotification: function(options) { + return window.Capacitor.nativePromise('DailyNotification', 'scheduleDailyNotification', options || {}); + }, + getNotificationStatus: function() { + return window.Capacitor.nativePromise('DailyNotification', 'getNotificationStatus', {}); + }, + cancelAllNotifications: function() { + return window.Capacitor.nativePromise('DailyNotification', 'cancelAllNotifications', {}); + }, + // Status methods + checkStatus: function() { + return window.Capacitor.nativePromise('DailyNotification', 'checkStatus', {}); + }, + // Channel methods + isChannelEnabled: function(options) { + return window.Capacitor.nativePromise('DailyNotification', 'isChannelEnabled', options || {}); + }, + openChannelSettings: function(options) { + return window.Capacitor.nativePromise('DailyNotification', 'openChannelSettings', options || {}); + }, + // Configuration methods + configure: function(options) { + return window.Capacitor.nativePromise('DailyNotification', 'configure', options || {}); + }, + configureNativeFetcher: function(options) { + return window.Capacitor.nativePromise('DailyNotification', 'configureNativeFetcher', options || {}); + }, + // Battery/Power methods + getBatteryStatus: function() { + return window.Capacitor.nativePromise('DailyNotification', 'getBatteryStatus', {}); + }, + getPowerState: function() { + return window.Capacitor.nativePromise('DailyNotification', 'getPowerState', {}); + }, + requestBatteryOptimizationExemption: function() { + return window.Capacitor.nativePromise('DailyNotification', 'requestBatteryOptimizationExemption', {}); + }, + // Exact alarm methods + getExactAlarmStatus: function() { + return window.Capacitor.nativePromise('DailyNotification', 'getExactAlarmStatus', {}); + }, + openExactAlarmSettings: function() { + return window.Capacitor.nativePromise('DailyNotification', 'openExactAlarmSettings', {}); + }, + // Test methods + testAlarm: function(options) { + return window.Capacitor.nativePromise('DailyNotification', 'testAlarm', options || {}); + } }; -console.log('Capacitor plugins file loaded'); +console.log('Capacitor plugins file loaded - DailyNotification plugin registered');