Battery Life

RSS for tag

Measure how your application consumes energy.

Posts under Battery Life tag

42 Posts
Sort by:

Post

Replies

Boosts

Views

Activity

Battery Health Drain 1% every 10 days
My AppleCare is about to expire (a week) and I am experiencing 1% battery health decrease every 10 days or so. I use my iPhone 14 pro max lightly, and usually full charge it every 2 days. Followed all the tips that Apple recommends to maintain battery health, all of them did not work. Went to Apple store to get it fixed, but I have to pay out out pocket because it is now 94% and not eligible for AppleCare coverage that is supposed to be 79% or less. Suggestions would be appreciated on what should I do to get the battery replaced with my coverage. thank you
1
0
85
5d
Really High Energy Use
I'm developing an app where users can select items to add to a screen, similar to creating a Canva presentation or choosing blocks in Minecraft. However, I'm encountering an issue with energy usage. When users click the arrows to browse different items, the energy use spikes significantly. Although it returns to normal after a while, continuous clicking causes the energy use to skyrocket. The images I'm using are 500x500 pixels. Ideally, I would like to avoid caching all the images, as the app might have up to 500 items and caching them all would consume too much memory. I have tried numerous way to avoid this but I just can’t seem to make it work. Would anyone know how to avoid such problem? I have included a picture of the energy use when just opened, and one after like 10 seconds of continuously clicking on an arrow to see more items. Also a picture of how the app looks. struct ContentView: View { struct babyBackground { var littleImage = "" } @State var firstSet: [babyBackground] = [ babyBackground(littleImage: "circle"), babyBackground(littleImage: "square"), babyBackground(littleImage: "triangle"), babyBackground(littleImage: "anotherShape"), babyBackground(littleImage: "circle"), babyBackground(littleImage: "square"), babyBackground(littleImage: "triangle"), babyBackground(littleImage: "anotherShape") ] @State var secondSet: [babyBackground] = [ babyBackground(littleImage: "circle"), babyBackground(littleImage: "square"), babyBackground(littleImage: "triangle"), babyBackground(littleImage: "anotherShape"), babyBackground(littleImage: "circle"), babyBackground(littleImage: "square"), babyBackground(littleImage: "triangle"), babyBackground(littleImage: "anotherShape"), babyBackground(littleImage: "circle") ] @State var thirdSet: [babyBackground] = [ babyBackground(littleImage: "circle"), babyBackground(littleImage: "square"), babyBackground(littleImage: "triangle"), ] let columns: [GridItem] = Array(repeating: .init(.flexible()), count: 4) func createBackgroundGridView(for backgrounds: [babyBackground], columns: [GridItem] ) -> some View { LazyVGrid(columns: columns, spacing: 10) { ForEach(0..<backgrounds.count, id: \.self) { index in Button(action: { }, label: { if let path = Bundle.main.path(forResource: backgrounds[index].littleImage, ofType: "png"), let uiImage = UIImage(contentsOfFile: path) { Image(uiImage: uiImage) .resizable() .frame(width: 126, height: 96) } }) } } .padding() } @State var indexOn = 0 var body: some View { HStack{ Button(action: { indexOn = (indexOn == 0) ? 2 : indexOn - 1 }) { Label("", systemImage: "arrowtriangle.left.fill") .font(.system(size: 50)) } Spacer() ScrollView { switch indexOn { case 0: createBackgroundGridView(for: firstSet, columns: columns) case 1: createBackgroundGridView(for: secondSet, columns: columns) case 2: createBackgroundGridView(for: thirdSet, columns: columns) case 3: createBackgroundGridView(for: thirdSet, columns: columns) default: createBackgroundGridView(for: firstSet, columns: columns) } } .frame(maxWidth: .infinity, maxHeight: .infinity) Spacer() Button(action: { indexOn = (indexOn == 2) ? 0 : indexOn + 1 }) { Label("", systemImage: "arrowtriangle.right.fill") .font(.system(size: 50)) } } } } Energy Use when app starts: Energy use after clicking for about 10 seconds: App UI:
1
1
135
4d
ios18 - Battery draining and phone heating
Hi, After upgrading my iPhone 15 pro max to ios18 beta, i am facing serious heating issues and battery draining very fast. Also, i can see the mobile charging speed is very low. any recommendations to fix the issue ? I can't downgrade the mobile since there are high chances that i may loose currently configured esims after downgrade.
4
5
1.9k
Jun ’24
SwiftUI full screen animation uses less energy than Metal Game template
I've got a full-screen animation of a bunch of circles filled with gradients, with plenty of (careless) overdraw, plus real-time audio processing driving the animation, plus the overhead of SwiftUI's dependency analysis, and that app uses less energy (on iPhone 13) than the Xcode "Metal Game" template which is a rotating textured cube (a trivial GPU workload). Why is that? How can I investigate further? Does CoreAnimation have access to a compositor fast-path that a Metal app cannot access? Maybe another data point: when I do the same circles animation using SwiftUI's Canvas, the energy use is "Very High" and GPU utilization is also quite high. Eventually the phone's thermal state goes "Serious" and I get a message on the device that "Charging will resume when iPhone returns to normal temperature".
0
5
512
May ’24
Battery Consumption
We are developed app based on driver behaviour using location and sensor data. It's working in both background and foreground using region monitoring. Its consume more battery comparing other apps like. Its reduce 5% for every 5 to 10 mins of duration. We are using for our app functionality Location (Always) - every 1sec Sensor - Accelerometer - every 20data for 1sec Background - Region monitoring Time Action - 1sec for 20time Any possible way to reduce battery consuming? If any please suggest your points. Thanks in advance for your comments.
0
0
296
May ’24
iOS 17 - battery drain
Since the latest update of iOS (17.4) I can tell that I can see battery drain on my iPhone 15 Pro! Especially at nights! I use Wi-Fi calling so when I get ready to sleep I turn airplane mode on and leave it on all night. The next morning I get up and my iPhone has already lost at least 10% battery (!!!) Today it had a loss of 25% (!!!). It went from 66% to 51% in 8 hours! In the battery usage there are social media apps mostly with the most of consumption. I also kill all the apps from the background every single night before I go to sleep. So what "eats" my battery so much at night? Any thoughts or tips please?
1
0
603
Mar ’24
Decreased iPhone battery health
I have an iPhone 13 Promax, the battery health of which is 78%, and I would like it to be 100% after replacement. Most of the repairmen say that the cost is high, but a repair shop has announced a reasonable price. Has anyone had the experience of repairing in this repair shop? https://apple-irani.ir
1
0
378
Feb ’24