cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
daroot
Resolver I
Resolver I

GPS Location Enable check

Hi All,

Currently powerapps only asked Location permission at the first time use the app, but after that it won't asked to enable GPS anymore. If I want to create the app always keep asking the the location enabled from the user device, is it possible?

The idea is, when user re-open the app always check the GPS location off/on.

Thanks,
1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

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

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-xida-msft
Community Support
Community Support

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

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

I see the thread is several months old...

but, why not test
location.whatever>0.  

If you are greater than 0, gps is turned on.

if your are less than 0, well, no gps.

hope that helps

kempra
New Member

Here is my Solution: 

 

// Viewpoint Home

Set(_homeLocation;BingMaps.GetLocationByPoint(XX.XXX; YY.YYY));;

 

// Get the current Position of the User
Set(_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

 

 

 

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,192)