cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
hpkeong
Level 10

Location.Latitude & Longitude issues

Hi PG

 

Recently I started to use Location as Vehicle Tracking.

However, the Location.Lat and Location.Lon is not Changing the value.

It changes only when I close the apps and re-open (from menu) and it will refresh.

 

My Location is ON all the time and previously it works well.

May I know if there is any problem to the codes?

 

I am just having a:

- TexBox1.Text = Locaiton.Latitude and

- TexBox1.Text = Locaiton.Longitude

 

Just wonder what went wrongf.

hpkeong
4 REPLIES 4
Community Support Team
Community Support Team

Re: Location.Latitude & Longitude issues

Hi Hpkeong,

 

When we use Location signal to get the location information, as the location changes, dependencies on the location will continuously recalculate. So the value of Location.Latitude and Location.Longitude should also be changed when your device moving.

 

I will try to involve someone who are familiar with this issue to take a further investigation on it.

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
hpkeong
Level 10

Re: Location.Latitude & Longitude issues

Hi

Thanks.
On SP4, changed rarely.
I asked my son to test for me lately and he got it done.
I am asking friend to test on other different phone, android, iPhone..

Hope it is intermittent problem or phone problem.
Once again, appreciate your help.
hpkeong
Highlighted
LenLin
Level: Power Up

Re: Location.Latitude & Longitude issues

Hi Team,

 

I am also testing the geolocation setting on powerapps, and it did not auto-update the geolocation except when I reopen the apps.

Is this problem solved or there is workaround? Thanks.

 

Regards,

Len

sdela
Level: Powered On

Re: Location.Latitude & Longitude issues

Hi,

 

I'm currently having the same problem on android. It seems to work on iOS but not on android. Any workaround for this? I've tried using a timer with Enable(Location), but the only way to get the location to update seems to be closing the app and reopening, switching screens, pressing buttons etc. don't trigger an update.

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (4,797)