I have compiled and installed an Android version of the following Corona SDK sample application (using CoronaSDK-2016.2949 with Sublime Text 3):
C:\Program Files (x86)\Corona Labs\Corona SDK\Sample Code\Hardware\GPS
When I install the application it requests the following during installation:
Do you want to install this application? It will get access to:
approximate location (network-based)
precise location (GPS and network-based)
If the GPS is turned off on my phone before installing this application (settings -> Location = Off), this GPS sample application does not turn the GPS on, even after I agree to the above request.
Could someone please tell me how you programmatically turn on the GPS with Corona SDK?