How Facebook find a solution for location accuracy and battery power? -


hello have question did not find answer.do know how big applications (e.g facebook) have resolved problems between accuracy of location , battery power? use fused location provider high-accuracy or what?

the fused location api provides more simple battery/performance improvement. decides on behalf sensors use determine location depending on precision need , what's available.

as how achieve best battery/performance balance:

short answer:

the battery/performance issue dealt sacrificing precision possible without hurting user experience. done switching between different precision modes depending on situation.

example use cases (just give idea how think it):

  • if need tag picture location, coordinates using high precision. if math, gps battery consumption negligible in comparison both camera , screen on, , situation won't last long high power draw not issue if it's few seconds.
  • if need check when user gets location, you'd check location balanced mode every 15min. it's not precise, , not real time, won't consume lot of battery , won't impact user experience since detect general area user whenever stays @ same location long enough cares info.
  • if need know user in precise location, first check low battery consumption methods, if he's in general area, check again high precision. reduce battery consumption significantly.
  • turn off location detection @ times when user not need it. example if it's business application, surely don't need during weekend, don't check location @ time.

Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -