For last 10 years we have been using Cordova/Angular-7/PhoneGap to develop this iOS app. Below is the list of plugins used in the build. The current released build was published just couple of months ago to address a very minor bug fix which involved changing one small operation. It was published using Xcode targeting iOS 16.
Unfortunately, this released version has severely impacted the battery performance on the devices that its being used on. The battery on the devices (iPad and iPods with iOS 15 and iOS 16) is draining more than twice as fast compared to the previous version. The previous version was published back in 2021 using Xcode as well. There is nothing different running on these devices compared to what was running before with the previous version. We have tried reverting the code changes, so the code is exactly the same as the previous version and published a new version using Xcode, but the battery performance issue still exists.
• Has anyone encountered a similar issue? How did you address it?
• Are any of the plugins causing the issue?
• Is the newer version of Xcode causing this issue?
We submitted the issue to Apple DTS but they refused to assist as the app is built using Cordova. Any help provided will be greatly appreciated.
App Plugins & version details: Cordova 11.0.0, Xcode 14.0.1, Angular 7.1.2, Target iOs 16.0
cordova-background-geolocation-lt 3.0.4 "BackgroundGeolocation"
cordova-plugin-background-fetch 5.4.1 "CDVBackgroundFetch"
cordova-plugin-badge 0.8.8 "Badge"
cordova-plugin-barcodescanner 0.7.4 "BarcodeScanner"
cordova-plugin-camera 5.0.1 "Camera"
cordova-plugin-cocoalumberjack 0.0.4 "CocoaLumberjack"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-device 2.0.3 "Device"
cordova-plugin-dialogs 2.0.2 "Notification"
cordova-plugin-ios-camera-permissions 1.2.0 "iOS Permissions"
cordova-plugin-local-notification 0.9.0-beta.2 "LocalNotification"
cordova-plugin-statusbar 2.4.3 "StatusBar"
cordova-plugin-vibration 3.1.1 "Vibration"
cordova-plugin-whitelist 1.3.4 "Whitelist"