Files
daily-notification-plugin/ios
Matthew Raymer ca40b971c5 feat(ios): implement getPowerState, requestBatteryOptimizationExemption, and setAdaptiveScheduling methods
Implemented power and scheduling utility methods:

getPowerState():
- Returns power state code (0=unknown, 1=unplugged, 2=charging, 3=full)
- Returns isOptimizationExempt (always false on iOS)
- Uses UIDevice battery monitoring

requestBatteryOptimizationExemption():
- No-op on iOS (battery optimization not applicable)
- Exists for API compatibility with Android
- Background App Refresh is user-controlled in Settings

setAdaptiveScheduling():
- Enables/disables adaptive scheduling
- Stores setting in UserDefaults
- Matches Android behavior

iOS Adaptations:
- Battery optimization not applicable (Background App Refresh is system setting)
- Power state derived from battery state
- Adaptive scheduling stored in UserDefaults

Progress: 24/52 methods implemented (46% complete)
2025-11-11 02:10:39 -08:00
..