web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Location consent box a...
Power Apps
Answered

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

(0) ShareShare
ReportReport
Posted on by 2,914

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?

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @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.

  • Verified answer
    PaulD1 Profile Picture
    2,914 on at

    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!

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @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.

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 474

#1
Valantis Profile Picture

Valantis 474

#3
WarrenBelz Profile Picture

WarrenBelz 375 Most Valuable Professional

Last 30 days Overall leaderboard