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

Issue with mobile apps launch google maps

Hi everyone, 

 

I will explain in a few row my project to make my issue clear to understand. 

 

I realize a simple app following this link https://www.powerobjects.com/services/powerapps/?wvideo=u9fqdh9jbh

What i got is the image attached.

I applied to the singolar icons a launch function.

for the Phone icon

Spoiler
Launch("tel:"&If(IsEmpty(LookUp(Contacts;contactid=ThisItem.'Contact Name';'Business Phone'));LookUp(Contacts;contactid=ThisItem.'Contact Name';'Mobile Phone');LookUp(Contacts;contactid=ThisItem.'Contact Name';'Business Phone')))

 

NB. i used the lookup function to get the data from other entity.

Output: it works. When i tap the icon it launch a call to the right telefon number that i passed as a parameter.

For the SMS icon i did the same (i just change from "tel:" to "SMS:") and it works too.

 

Finaly i used the Launch fucntion also to launch google maps from my Smartphone when i tap the Cars icon as below: 

 

Spoiler
Set(AddressLocation;location);;Enable([@Location]);;Launch(Concatenate("https://www.google.com/maps/dir/";Substitute(Text([@Location].Latitude);",";".");",";Substitute(Text...);" ";"+")))

When i tap the icon from my PowerApps from smartphone (or tablet, ipad too) it DOESN'T WORK! 

 

Can please some one help me to understand why it doesn't work?

 

More info: i don't have google api key - i don't really think it needs, but... someone i'm sure will know it better then me. 

 

Thanks

 

Andi

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Issue with mobile apps launch google maps

Hi @MARIOROSSIBEAN , 

 

Modify the Google Map launch formula as follows:
 
Set(AddressLocation,Location);Enable([@Location]);Launch(Concatenate("https://www.google.com/maps/@",Text(AddressLocation.Latitude),",",Text(AddressLocation.Longitude),",15z"))
I have tested this out and this works fine in my devices. 
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

2 REPLIES 2
Dual Super User
Dual Super User

Re: Issue with mobile apps launch google maps

Hi @MARIOROSSIBEAN , 

 

Modify the Google Map launch formula as follows:
 
Set(AddressLocation,Location);Enable([@Location]);Launch(Concatenate("https://www.google.com/maps/@",Text(AddressLocation.Latitude),",",Text(AddressLocation.Longitude),",15z"))
I have tested this out and this works fine in my devices. 
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Community Support Team
Community Support Team

Re: Issue with mobile apps launch google maps

Hi @MARIOROSSIBEAN ,

Please try this formula:

Launch("http://maps.google.com/?q="&EncodeUrl("locationtext"))

Here's a similar issue for your reference:

https://powerusers.microsoft.com/t5/General-Discussion/Can-we-open-quot-Google-Maps-Application-quot...

Here's a blog about google map for your reference:

https://powerapps.microsoft.com/en-us/blog/image-control-static-maps-api/

 

 

 

Best regards,

Community Support Team _ Phoebe Liu

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.

Helpful resources

Announcements
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 (Last 30 Days)
Users online (4,919)