I have developed an app for timesheets. In the app I collect location (Latitude and longtitude) details. The command line I use is:
Enable(Location);Set(_startdate,(Text( Now(),"[$-en-US]hh:mm" ))); Set(_startlat,Location.Latitude);Set(_startlong,Location.Longitude);Disable(Location)
This works well when a user has the location services turned on on their device (smartphone or tablet) and I receive the latitude and longtitude data into my variable.
However if a user has their location services turned off on their device I get a NULL result.
I use the enable and disable as per the powerapps guide which states "The Enable and Disable functions turn a signal on and off, respectively.". When installing the App for the first time the user is asked to use the location and camera services which they respond to "Allow". However when the user turns off their location service on the device you cannot pick up their GPS Location.
So my question is how to turn on Location signal when the user has the location services in the OFF position on their device?
Any thoughts?