cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PaulD1
Super User
Super User

Location consent box appearing on start up, but no reference to latitude or longitude in App

I have inherited an App that is showing a consent dialog when it starts, asking the user to allow permission to use Location.

This is causing a problem as the client wants to use a bot with the App and apparently they can't get that to work with the consent dialog.

I have checked the content of the App using the PowerApps Review Tool and have not managed to find any reference to location, latitude, longitude, altitude or compass (although as that tool is pretty flakey, I'm not 100% convinced it has loaded every code references). There are a couple of Flows which I don't have edit access to, but seems unlikely they would be using any location services.

Any ideas how I can find out where the App is referencing Location and remove it? Or, if it is not actually using Location, how I can get rid of it?

1 ACCEPTED SOLUTION

Accepted Solutions
PaulD1
Super User
Super User

Thanks @RandyHayes 

I have now found the reference. As there were lots of variables with names like LocationCity, LocationStreet, I was searching for 'Location.' (location plus a period) as I was expecting the reference to be along the lines of Location.Longitude. However, there was a command: ClearCollect(colMyLocation, Location) which seems pretty much redundant (why store the location in a variable instead of just referencing location itself?!?).

Removing that command removed the Location Permission pop up and colMyLocation was not actually used anywhere in the App... the joys of maintaining other people's work!

View solution in original post

3 REPLIES 3
RandyHayes
Super User III
Super User III

@PaulD1 

I don't have a direct answer for you, but I have seen this before.  We have a couple of apps that, once upon a time, used location services.  They were removed, but the consent notification never went away and no matter what searching for it was done, there was never anything found.  I never got a chance to dig into the JSON def files to determine where it would possibly be enabled.

I know that versions (previous) of the app are all stored in the current version of the app, so I thought perhaps that had something to do with it.  I believe the prior versions (again, all within the app definition) get wiped out when you publish, but the problem still happened.  So...not really sure.

 

Just thought I would chime in at least.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
PaulD1
Super User
Super User

Thanks @RandyHayes 

I have now found the reference. As there were lots of variables with names like LocationCity, LocationStreet, I was searching for 'Location.' (location plus a period) as I was expecting the reference to be along the lines of Location.Longitude. However, there was a command: ClearCollect(colMyLocation, Location) which seems pretty much redundant (why store the location in a variable instead of just referencing location itself?!?).

Removing that command removed the Location Permission pop up and colMyLocation was not actually used anywhere in the App... the joys of maintaining other people's work!

View solution in original post

@PaulD1 

Ah, that is good.  Yours went away!  I never got to track down the ghost in the other apps that I mentioned. Someday I will return to that.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,299)