0

So i need to redirect users to google maps mobile app when they click on the button ! (PS : i m using Chatfuel messsenger chatbot JSON API response chatfuel JSON API )

I've tried these links but it didn't work for me :

comgooglemaps://?center=40.765819,-73.975866&zoom=14&views=traffic"

When i use this link

 https://www.google.com/maps/dir/?api=1&origin="+latitude+","+longitude+"&destination="+loc.latitude+","+loc.longitude+"&travelmode=transport?v=%20",

I get this result

screenshot

Az Emna
  • 527
  • 2
  • 10
  • 26

1 Answers1

0

I think the universal protocol for map is "geo://" (with coordinate and it will prompt for asking which app the user want to use) but the "maps://" protocol works on most devices too (certainly with gmaps options). "comgooglemaps://" is for ios only.

Nil
  • 355
  • 1
  • 2
  • 8