Energy Efficient Guidelines for iOS Core Location Framework

Abdul Ali Bangash, Daniil Tiganov, Karim Ali, Abram Hindle

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

Several types of apps require accessing user location, including map navigation, food ordering, and fitness tracking apps. To access user location, app developers use frameworks that the underlying platform provides to them. For the iOS platform, the Core Location framework enables developers to configure various services to obtain user location information. But how does a particular configuration affect the energy consumption of an app? The available Core Location framework documentation is insufficient to help developers reason about the tradeoff between choosing a particular configuration and energy consumption. In this paper, we present a set of guidelines that will help developers make an energy-efficient design choice while configuring the Core Location framework for their app. To achieve that, we have created microbenchmark configurations of the various services that the Core Location framework provides. We have then run several test-scenarios on these configurations to extract their energy profiles. To extract energy-efficient guidelines for developers, we have carefully examined those energy profile results. The guidelines show several configurations that not only reduce energy consumption but also access locations more frequently than other configurations. To evaluate those guidelines, we analyzed three real-world apps and a location service sample app provided by Apple. Our results show that the guidelines help reduce energy: 0.42% for a property search app, 10.59% for a weather app, 26.91% for a location utility app, and 11.37% for Apple's sample app. Additionally, our empirical evaluation shows that choosing an energy-hungry configuration can increase the energy consumption by up to a maximum of 23.97%. Our guidelines are effective on 3 real-world apps, and our methodology may be used to extract energy-efficient guidelines for frameworks other than the Core Location framework.

Original languageEnglish (US)
Title of host publicationProceedings - 2021 IEEE International Conference on Software Maintenance and Evolution, ICSME 2021
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages320-331
Number of pages12
ISBN (Electronic)9781665428828
DOIs
StatePublished - 2021
Event37th IEEE International Conference on Software Maintenance and Evolution, ICSME 2021 - Luxembourg City, Luxembourg
Duration: Sep 27 2021Oct 1 2021

Publication series

NameProceedings - 2021 IEEE International Conference on Software Maintenance and Evolution, ICSME 2021

Conference

Conference37th IEEE International Conference on Software Maintenance and Evolution, ICSME 2021
Country/TerritoryLuxembourg
CityLuxembourg City
Period9/27/2110/1/21

Keywords

  • developers guide
  • iOS development
  • smartphone apps
  • software energy consumption

ASJC Scopus subject areas

  • Software
  • Safety, Risk, Reliability and Quality

Fingerprint

Dive into the research topics of 'Energy Efficient Guidelines for iOS Core Location Framework'. Together they form a unique fingerprint.

Cite this