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)
52 KiB
52 KiB