Announcements
Hi @daroot,
If you want to the app always being asking the the location enabled from the user device, I afraid that there is no way to achieve your needs in PowerApps currently.
Currently, within PowerApps, the Location permission would be asked only when a user accesses the location information for the first time.
If you would like this feature to be added in PowerApps, please submit an idea to PowerApps Ideas Forum:
https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas
Best regards,
Kris
I see the thread is several months old...
but, why not testlocation.whatever>0.
If you are greater than 0, gps is turned on.
if your are less than 0, well, no gps.
hope that helps
Here is my Solution:
// Viewpoint Home
Set(_homeLocation;BingMaps.GetLocationByPoint(XX.XXX; YY.YYY));;
// Get the current Position of the UserSet(_currentLocation;Location.Latitude&","&Location.Longitude);;
// Check have the calculate diastance a Error or is Blank
Set(_gpsIsActiv; If(!IsBlankOrError(BingMaps.GetRoute(_companyLocation.point.coordinates.combined;
_currentLocation).travelDistance); true; false));;
in Amerika change the ; in ,
becurse i life in Europa
I hope this is helpfull
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 494
WarrenBelz 352 Most Valuable Professional
11manish 323