Skip to content

Instantly share code, notes, and snippets.

View sandhi's full-sized avatar
🏠
Working from home

Sandhi Zulqifli sandhi

🏠
Working from home
View GitHub Profile
@sandhi
sandhi / gpsExplained.md
Created October 31, 2022 08:48 — forked from breautek/gpsExplained.md
GPS Explained

GPS features is something I heavily use in my apps and in my experience there are two things that can effect slow/non-existent GPS updates.

1. User Settings

On most android versions, the user may have location mode set "battery saving" -- which makes it so the phone requires to be near networks such as known wifi hotspots (such as businesses), or near mobile towers because it only uses wifi & mobile networks to determine location. Or "Device Only", which means the phone must connect to satellites to obtain a location. From a cold fix, it can take 10-15 minutes even in good conditions on a decent device before you start seeing stable GPS updates. The best location setting the phone can be in is "High Accuracy" mode (not to be confused with the api's highAccuracy option), which allows the phone to use any number of strategies to obtain a GPS update as quickly as possible. Note that this is a user setting that is outside the control of the app, however I'm sure there are plugins that allows you to open up

@sandhi
sandhi / README.md
Created April 24, 2017 14:29 — forked from zenorocha/README.md
A template for Github READMEs (Markdown) + Sublime Snippet

Project Name

TODO: Write a project description

Installation

TODO: Describe the installation process

Usage