# StartGPSTracking

## Description

Starts the process of getting a GPS location if possible on the current device. This may produce a permission request on some platforms the first time you call it. If the user denies permission then GetGPSSensorExists may return 0 from then on. You should only call this command when the user is doing an activity they know will require a location, otherwise they may deny it and never get asked again (they will have to go into their device settings to enable it). This command will consume a lot of battery power, so use StopGPSTracking when you no longer need a location. This command works on iOS, Android, Mac, and Windows 7 and above. It may take some time from calling this command to get an accurate location from GetRawGPSLatitude and GetRawGPSLongitude.

## Definition

StartGPSTracking()

void agk::StartGPSTracking()