cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Nick_Loenders
Level: Powered On

Opening Google Maps not working on IOS and sending SMS neither

When I use the following code to get the directions in maps it works perfectly on Android, but IOS says it is not a good code so does not give directions:

 

Launch("https://www.google.com/maps/dir/" & var_currentLat & "," & var_currentLong & "/" & 'Client streetname'.Value & "+" & 'Client housenr'.Value & "," & 'Client postalcode'.Value & "+" & 'Client city/place'.Value)

 

When sending an sms I use this code:

Launch("SMS:0"&Value(scrDetailstxtPhone.Text), "body", "Dear" & txtCustomer.Text & ". hello.");

Launch("SMS:0"&Value(scrDetailstxtPhone.Text), "&body=Dear " & txtCustomer.Text & ". Hello.");

 

I thought one was for Android and the other for IOS, but on IOS the data is not entered in the messaging entries....

On android all works fine

 

What do I need to do to make it work on IOS devices?

4 REPLIES 4
Community Support Team
Community Support Team

Re: Opening Google Maps not working on IOS and sending SMS neither

Hi @Nick_Loenders ,

There's no difference betweeen using google maps in  Android and Ios.

I suggest you check whether your IOS system meet the requirments:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/limits-and-config

What's more, if your system just meet the minimum required, the app may also not perform well.

If the problem still exists, please try to clear your ios device's powerapps' cache and update the app to the latest version.

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Nick_Loenders
Level: Powered On

Re: Opening Google Maps not working on IOS and sending SMS neither

@v-yutliu-msft Hi, but I have tested it just now on a iphone with IOS 12.4 , I reinstalled the app.

And the app just works fine, except the sms and the maps thing don't work

for the maps thing it says: Unsupported link, cannot open this link in Google Maps

 

 

Community Support Team
Community Support Team

Re: Opening Google Maps not working on IOS and sending SMS neither

Hi @Nick_Loenders ,

Maybe google maps' link is different between ios and adroid.

Try the links list in the doc:

https://developers.google.com/maps/documentation/ios-sdk/urlscheme

About sms, please refer this:

https://powerusers.microsoft.com/t5/Expressions-and-Formulas/Using-Launch-function-to-to-start-up-SM...

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Nick_Loenders
Level: Powered On

Re: Opening Google Maps not working on IOS and sending SMS neither

Hi, @v-yutliu-msft 

I solved the Google maps thing by creating two buttons:

Android:

Launch("https://www.google.com/maps/dir/" & var_currentLat & "," & var_currentLong & "/" & 'Klant straatnaam'.Value & "+" & 'Klant huisnummer'.Value & "," & 'Klant postcode'.Value & "+" & 'Klant stad/gemeente'.Value)

 

IOS:

Launch("https://maps.google.com/maps?f=d&daddr=" & 'Klant straatnaam'.Value &",+" & 'Klant huisnummer'.Value & ",+" & 'Klant postcode'.Value & ",+" & 'Klant stad/gemeente'.Value & "&sll=" & var_currentLat & "," & var_currentLong & "&sspn=0.2,0.1&nav=1")

 

And for the SMS also two buttons:

Android:

Launch("SMS:0"&Value(scrDetailstxtPhone.Text), "body", "Beste " & txtCustomer.Text & ". Een SDE technieker is onderweg naar u.")

 

IOS:

Launch("SMS:0"&Value(scrDetailstxtPhone.Text)&"&body=Beste " & txtCustomer.Text & ". Een SDE technieker is onderweg naar u.")

 

Now, 

when the client clicks on a certain button his start and stop location are added in a field in the Sharepoint list.

For Android this is ok and is like:

https://www.google.com/maps/dir/50.7475467,5.1798502

 

but when I perform this on an IOS device it makes a , of the dot:

https://www.google.com/maps/dir/50,75326858,5,17843807

 

The code I use in Powerapps is now:

StopLocatie:"https://www.google.com/maps/dir/" & var_currentLat & "," & var_currentLong } )

 

where screen onvisible has :

UpdateContext({var_currentLat: Location.Latitude})
;UpdateContext({var_currentLong: Location.Longitude})

as code

 

How can I make it so it does not alter the . into a , ?

 

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, September 18th at 8am PDT

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Users Online
Currently online: 50 members 4,273 guests
Please welcome our newest community members: