SlideShare une entreprise Scribd logo
1  sur  18
Minimise the Burden on Battery
iOS Application Battery
Optimization Techniques
How to Increase an iPhone Battery Usage
People find battery a serious concern but few iOS app designing
tips
and can easily extend the battery usage of an iPhone without
compromising the . Perhaps the most ignored tip is keeping your
iPhone beyond the reach of hot sun or avoid leaving it in a hot car.
Heat shortens the battery’s performance significantly
Turn Down the Volume
In order to minimize the impact of audio on
your iphone it is recommended to turn down
your volume as well as prefer headphones
when
Possible. Go to Setting>Music to set a volume
limit as well as to turn off the EQ in order to
save even more battery
Stop the Location Services
It is evident that when your iphone is used to
track location then it drains huge amount of
battery. You can stop this by going into
Setting>Privacy>Location Services and turn off
any app that you don’t want should track you.
Going a step further you can also turn off the
Frequent Location, Diagnostic and Usage and
Location-Based iAds by going into
Setting>Privacy>Location
Services>SystemServices
Turn Off Unnecessary Animations
Parallax effect and Dynamic Wallpapers are for
sure two very attractive thing on your iPhone
but impact your iPhone Battery very negatively.
Once you put a pause on these it will surely save
you substantial amount of battery. To do this go
to Settings>General>Accessibility and turn on
the Reduce motion. Now go to
Settings>Wallpapers & Brightness> Choose
Wallpaper and select some static wallpaper
Turn Off Unnecessary Animations
Parallax effect and Dynamic Wallpapers are
animated using information via iPhone’s
sensors about the way in which you are holding
and moving the phone hence these effect drain
a substantial amount of battery
Do the Download Beforehand
There are multiple movie and music streaming
services where option to download the data for
offline listening and viewing is available.
Streaming data using the iPhone data pack will
put extra burden on the device battery. Now
downloading ahead of time you want it will
enable your battery to go further.
Smart Prioritization for Remote Notification
Delivery
Smart Prioritization for Remote Notification
Delivery
There are multiple elements contained within the remote
notifications delivered by the server to Apple Notification
Service like payload data, an expiration date and a priority.
Notifications can be delivered immediately or can be scheduled
for an energy-efficient time. Here using two levels of push
priority you can you can decide which notification to be
delivered instantaneously or need to be sent later.
Discover those Services and Characteristics that
You Actually Need
A peripheral usually has more than enough services to
perform specific use case in an app. It is therefore,
recommended to figure out the particular services and
characteristics required by your app. This can be done using
particular UUIDs to discover services: and
discoverCharacteristics:forService: methods of the
CBPeripheral class
Discover those Services and Characteristics that
You Actually Need
Discovering particular services
OBJECTIVE-C
// Look for services matching a specific set of UUIDs
[peripheral discoverServices:@[firstServiceUUID, secondServiceUUID]];
SWIFT
// Look for services matching a specific set of UUIDs
peripheral.discoverServices([firstServiceUUID, secondServiceUUID])
Discover those Services and Characteristics that
You Actually Need
Discovering particular service characteristics
OBJECTIVE-C
// Look for characterstics matching a specific set of UUIDs for a given service
[[peripheral discoverCharacteristics:@[firstCharacteristicUUID,
secondCharacteristicUUID]
forService:interestingService]];
SWIFT
// Look for characterstics matching a specific set of UUIDs for a given service
peripheral.discoverCharacteristics([firstCharacteristicUUID,
secondCharacteristicUUID], forService: interestingService)
Disconnect from the Device When You Don't Need
It
To avoid your app from meaninglessly using the device’s radio simply disconnect
it from a peripheral device if some characteristic is no longer providing
notifications or even if the extra data is not required anymore. Cancel every
notification subscriptions by passing a value of NO to the
setNotifyValue:forCharacteristic: method of the CBPeripheral class. Now
disconnect from the device by calling the cancelPeripheralConnection: method of
the CBCentralManager class
Disconnect from the Device When You Don't Need
OBJECTIVE - C
// Unsubscribe from a characteristic value
[self.peripheral setNotifyValue:NO forCharacteristic:interestingCharacteristic];
// Disconnect from the device
[self.myCentralManager cancelPeripheralConnection:peripheral];
SWIFT
// Unsubscribe from a characteristic value
self.peripheral.notifyValue(false, forCharacteristic: interestingCharacteristic)
// Disconnect from the device
self.myCentralManager.cancelPeripheralConnection(peripheral)
Multiple factors affect the amount of energy required to do the
network operations on a device.
1. Cellular network activity requires much more energy than performing an
activity over Wi-Fi.
2. Poor or fluctuation in signal conditions may result in slow or problematic
transactions, which must be avoided.
3. Low network throughput (bandwidth) means radios need to stay more than
usual for performing the transactions.
4. The geographic location and preferred cellular provider can affect the amount of
energy consumption because signal conditions and throughput vary very often.
Networking Variable Effect on the Energy
Guideline for content refresh optimization
Try to limit the number of views your app uses.
1. Avoid using opacity especially for the content that changes
frequently.
2. Prefer only recommended frameworks while developing
games. These frameworks are optimized to provide good
performance.
iOS Application Battery Optimization Techniques

Contenu connexe

Similaire à iOS Application Battery Optimization Techniques

How to Lower Android Power Consumption Without Affecting Performance
How to Lower Android Power Consumption Without Affecting PerformanceHow to Lower Android Power Consumption Without Affecting Performance
How to Lower Android Power Consumption Without Affecting Performance
rickschwar
 
Workshop: Building location-aware mobile apps with iBeacons
Workshop: Building location-aware mobile apps with iBeaconsWorkshop: Building location-aware mobile apps with iBeacons
Workshop: Building location-aware mobile apps with iBeacons
Heather Downing
 
iPhone Presentation
iPhone PresentationiPhone Presentation
iPhone Presentation
ftmedubai
 
How To Make Your App Available Offline.pdf
How To Make Your App Available Offline.pdfHow To Make Your App Available Offline.pdf
How To Make Your App Available Offline.pdf
Satawaretechnologies1
 

Similaire à iOS Application Battery Optimization Techniques (20)

How to Lower Android Power Consumption Without Affecting Performance
How to Lower Android Power Consumption Without Affecting PerformanceHow to Lower Android Power Consumption Without Affecting Performance
How to Lower Android Power Consumption Without Affecting Performance
 
ibeacons, Privacy & Customer Segmentation - StreetHawk
ibeacons, Privacy & Customer Segmentation - StreetHawkibeacons, Privacy & Customer Segmentation - StreetHawk
ibeacons, Privacy & Customer Segmentation - StreetHawk
 
Final Project
Final ProjectFinal Project
Final Project
 
5 unique features of ibeacon app development
5 unique features of ibeacon app development5 unique features of ibeacon app development
5 unique features of ibeacon app development
 
5 Conditions to be Added to Your Mobile App Testing Checklist
5 Conditions to be Added to Your Mobile App Testing Checklist5 Conditions to be Added to Your Mobile App Testing Checklist
5 Conditions to be Added to Your Mobile App Testing Checklist
 
PPT on Android Applications
PPT on Android ApplicationsPPT on Android Applications
PPT on Android Applications
 
AEM Apps Enhanced: In-app Messaging and Beacons by John Fait
AEM Apps Enhanced: In-app Messaging and Beacons by John FaitAEM Apps Enhanced: In-app Messaging and Beacons by John Fait
AEM Apps Enhanced: In-app Messaging and Beacons by John Fait
 
How iBeacon Could Disrupt Consumer Experiences
How iBeacon Could Disrupt Consumer ExperiencesHow iBeacon Could Disrupt Consumer Experiences
How iBeacon Could Disrupt Consumer Experiences
 
Workshop: Building location-aware mobile apps with iBeacons
Workshop: Building location-aware mobile apps with iBeaconsWorkshop: Building location-aware mobile apps with iBeacons
Workshop: Building location-aware mobile apps with iBeacons
 
iPhone Presentation
iPhone PresentationiPhone Presentation
iPhone Presentation
 
Android battery optimization
Android battery optimizationAndroid battery optimization
Android battery optimization
 
How To Make Your App Available Offline.pdf
How To Make Your App Available Offline.pdfHow To Make Your App Available Offline.pdf
How To Make Your App Available Offline.pdf
 
iBeacon security overview
iBeacon security overviewiBeacon security overview
iBeacon security overview
 
Android Pro Tips - IO 13 reloaded Event
Android Pro Tips - IO 13 reloaded EventAndroid Pro Tips - IO 13 reloaded Event
Android Pro Tips - IO 13 reloaded Event
 
Building Location Aware Mobile Apps with iBeacons
Building Location Aware Mobile Apps with iBeaconsBuilding Location Aware Mobile Apps with iBeacons
Building Location Aware Mobile Apps with iBeacons
 
Stop freakin it's just a beacon seattle tech forum
Stop freakin it's just a beacon   seattle tech forumStop freakin it's just a beacon   seattle tech forum
Stop freakin it's just a beacon seattle tech forum
 
Mobile Application Testing
Mobile Application TestingMobile Application Testing
Mobile Application Testing
 
Internet of things, and rise of ibeacons
Internet of things, and rise of ibeaconsInternet of things, and rise of ibeacons
Internet of things, and rise of ibeacons
 
Updates on the Data Center Apps Program
Updates on the Data Center Apps ProgramUpdates on the Data Center Apps Program
Updates on the Data Center Apps Program
 
Cómo Desarrollar Apps Que Interactúan Con El Mundo Real - iBeacons & BLE
Cómo Desarrollar Apps Que Interactúan Con El Mundo Real - iBeacons & BLECómo Desarrollar Apps Que Interactúan Con El Mundo Real - iBeacons & BLE
Cómo Desarrollar Apps Que Interactúan Con El Mundo Real - iBeacons & BLE
 

Plus de Singsys Pte Ltd

Plus de Singsys Pte Ltd (18)

Technical Seminar Series: GIT Pull Requests Best Practices
Technical Seminar Series:  GIT Pull Requests Best PracticesTechnical Seminar Series:  GIT Pull Requests Best Practices
Technical Seminar Series: GIT Pull Requests Best Practices
 
Laravel Security Standards
Laravel Security Standards Laravel Security Standards
Laravel Security Standards
 
Android OS - The Journey of most popular Operating System
Android OS - The Journey of most popular Operating SystemAndroid OS - The Journey of most popular Operating System
Android OS - The Journey of most popular Operating System
 
How to Create WordPress Website in Easy Steps
How to Create WordPress Website in Easy StepsHow to Create WordPress Website in Easy Steps
How to Create WordPress Website in Easy Steps
 
Basics of-linux
Basics of-linuxBasics of-linux
Basics of-linux
 
SoLoMo
SoLoMoSoLoMo
SoLoMo
 
Introduction to facebook sdk
Introduction to facebook sdkIntroduction to facebook sdk
Introduction to facebook sdk
 
Html5 tutorial for beginners
Html5 tutorial for beginnersHtml5 tutorial for beginners
Html5 tutorial for beginners
 
Beginners css tutorial for web designers
Beginners css tutorial for web designersBeginners css tutorial for web designers
Beginners css tutorial for web designers
 
Joomla 3 installation and management guide
Joomla 3 installation and management guideJoomla 3 installation and management guide
Joomla 3 installation and management guide
 
Joomla Introduction & Installation Tutorial
Joomla Introduction & Installation TutorialJoomla Introduction & Installation Tutorial
Joomla Introduction & Installation Tutorial
 
Basic of web design
Basic of web designBasic of web design
Basic of web design
 
Embedded Technology
Embedded TechnologyEmbedded Technology
Embedded Technology
 
Java Tutorial
Java TutorialJava Tutorial
Java Tutorial
 
Technical seo tips for web developers
Technical seo tips for web developersTechnical seo tips for web developers
Technical seo tips for web developers
 
WordPress Website Design and Development
WordPress Website Design and DevelopmentWordPress Website Design and Development
WordPress Website Design and Development
 
Being a designer
Being a designerBeing a designer
Being a designer
 
Points for Design and Development of SEO friendly websites
Points for Design and Development of SEO friendly websitesPoints for Design and Development of SEO friendly websites
Points for Design and Development of SEO friendly websites
 

Dernier

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Dernier (20)

WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 

iOS Application Battery Optimization Techniques

  • 1. Minimise the Burden on Battery iOS Application Battery Optimization Techniques
  • 2. How to Increase an iPhone Battery Usage People find battery a serious concern but few iOS app designing tips and can easily extend the battery usage of an iPhone without compromising the . Perhaps the most ignored tip is keeping your iPhone beyond the reach of hot sun or avoid leaving it in a hot car. Heat shortens the battery’s performance significantly
  • 3. Turn Down the Volume In order to minimize the impact of audio on your iphone it is recommended to turn down your volume as well as prefer headphones when Possible. Go to Setting>Music to set a volume limit as well as to turn off the EQ in order to save even more battery
  • 4. Stop the Location Services It is evident that when your iphone is used to track location then it drains huge amount of battery. You can stop this by going into Setting>Privacy>Location Services and turn off any app that you don’t want should track you. Going a step further you can also turn off the Frequent Location, Diagnostic and Usage and Location-Based iAds by going into Setting>Privacy>Location Services>SystemServices
  • 5. Turn Off Unnecessary Animations Parallax effect and Dynamic Wallpapers are for sure two very attractive thing on your iPhone but impact your iPhone Battery very negatively. Once you put a pause on these it will surely save you substantial amount of battery. To do this go to Settings>General>Accessibility and turn on the Reduce motion. Now go to Settings>Wallpapers & Brightness> Choose Wallpaper and select some static wallpaper
  • 6. Turn Off Unnecessary Animations Parallax effect and Dynamic Wallpapers are animated using information via iPhone’s sensors about the way in which you are holding and moving the phone hence these effect drain a substantial amount of battery
  • 7. Do the Download Beforehand There are multiple movie and music streaming services where option to download the data for offline listening and viewing is available. Streaming data using the iPhone data pack will put extra burden on the device battery. Now downloading ahead of time you want it will enable your battery to go further.
  • 8. Smart Prioritization for Remote Notification Delivery
  • 9. Smart Prioritization for Remote Notification Delivery There are multiple elements contained within the remote notifications delivered by the server to Apple Notification Service like payload data, an expiration date and a priority. Notifications can be delivered immediately or can be scheduled for an energy-efficient time. Here using two levels of push priority you can you can decide which notification to be delivered instantaneously or need to be sent later.
  • 10. Discover those Services and Characteristics that You Actually Need A peripheral usually has more than enough services to perform specific use case in an app. It is therefore, recommended to figure out the particular services and characteristics required by your app. This can be done using particular UUIDs to discover services: and discoverCharacteristics:forService: methods of the CBPeripheral class
  • 11. Discover those Services and Characteristics that You Actually Need Discovering particular services OBJECTIVE-C // Look for services matching a specific set of UUIDs [peripheral discoverServices:@[firstServiceUUID, secondServiceUUID]]; SWIFT // Look for services matching a specific set of UUIDs peripheral.discoverServices([firstServiceUUID, secondServiceUUID])
  • 12. Discover those Services and Characteristics that You Actually Need Discovering particular service characteristics OBJECTIVE-C // Look for characterstics matching a specific set of UUIDs for a given service [[peripheral discoverCharacteristics:@[firstCharacteristicUUID, secondCharacteristicUUID] forService:interestingService]]; SWIFT // Look for characterstics matching a specific set of UUIDs for a given service peripheral.discoverCharacteristics([firstCharacteristicUUID, secondCharacteristicUUID], forService: interestingService)
  • 13. Disconnect from the Device When You Don't Need It To avoid your app from meaninglessly using the device’s radio simply disconnect it from a peripheral device if some characteristic is no longer providing notifications or even if the extra data is not required anymore. Cancel every notification subscriptions by passing a value of NO to the setNotifyValue:forCharacteristic: method of the CBPeripheral class. Now disconnect from the device by calling the cancelPeripheralConnection: method of the CBCentralManager class
  • 14. Disconnect from the Device When You Don't Need OBJECTIVE - C // Unsubscribe from a characteristic value [self.peripheral setNotifyValue:NO forCharacteristic:interestingCharacteristic]; // Disconnect from the device [self.myCentralManager cancelPeripheralConnection:peripheral]; SWIFT // Unsubscribe from a characteristic value self.peripheral.notifyValue(false, forCharacteristic: interestingCharacteristic) // Disconnect from the device self.myCentralManager.cancelPeripheralConnection(peripheral)
  • 15. Multiple factors affect the amount of energy required to do the network operations on a device. 1. Cellular network activity requires much more energy than performing an activity over Wi-Fi. 2. Poor or fluctuation in signal conditions may result in slow or problematic transactions, which must be avoided. 3. Low network throughput (bandwidth) means radios need to stay more than usual for performing the transactions. 4. The geographic location and preferred cellular provider can affect the amount of energy consumption because signal conditions and throughput vary very often.
  • 16. Networking Variable Effect on the Energy
  • 17. Guideline for content refresh optimization Try to limit the number of views your app uses. 1. Avoid using opacity especially for the content that changes frequently. 2. Prefer only recommended frameworks while developing games. These frameworks are optimized to provide good performance.