cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jlister
Advocate III
Advocate III

Location.Latitude and Location.Longitude iOS - must close and re-open app on 1st attempt

Hello,

I am using iOS 12 with PowerApps release 3.18094.26. I am using the formula Set(CurrentLatitude,Location.Latitude) on the OnSelect action for a button. The variable, CurrentLatitude is set as the text value in a label. The issue I am experiecing is when opening the application on the first attempt, the app is requesting permission to use location services; however, the Location.Latitude remains blank. Only when I close and re-open the app is the CurrentLatitude populated with the Location.Latitude. As a work-a-round, I thought I could just use the Launch formula to re-launch the app. However, Launch doesn't seem to work when launching an app that is already open.

Any suggestions or ideas on how to handle retrieving Location.Latitude & Location.Longitude on the initial launch in iOS? 

13 REPLIES 13
Anonymous
Not applicable

@jlister 

 

Hi, but the thing is, if I run the app on an Android device, it works good.

If I run it on an IOS device it makes commas of the dots....

?!?

So when using the iOS app player, I am assuming you are displaying the coordinates somehow, and that is where the decimal point is being replaced with a comma? Are you able to provide a screen-shot showing where the decimal point is replaced by a comma? this could help narrow down the search. Also, please confirm the number is saved with a decimal point in Share Point or not.

 

Thanks,

John

Anonymous
Not applicable

@jlister I don't know what happened, my last post and screenshots are not send to the forum.... 😞

 

Anyway,

I now just changed my display language on the IOS device and then it does work....

So when it is set to Dutch it changes the dot to a comma.

Any ideas where I can change this decimal setting on a IOS device 😞 ??

 

Anonymous
Not applicable

I solved it by doing: 

Replace(Text(var_currentLong),2,1,".")

 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (65,640)