From the Superhuman Docs mobile app, I would like to have a button/link that redirects the user to the Google Maps iOS app. The furthest I’ve gotten is:
I am using the pack “Google Maps Embed” and from that pack I use the formula Place(), like so: Place("New York", zoom: 10, language: "EN")
It shows a little map with a link (open in Maps) that opens a Google Maps session without any more clicks. It is not exactly what you are asking, but it might work for you too.
You may have better luck using the native Google Maps URL scheme instead of the web link. The iOS app should open directly with something like comgooglemaps://?q= followed by the encoded address, though you’ll need a fallback for users without Google Maps installed. The extra prompt is likely coming from the Docs app’s in-app browser handling.
Fortunately, these are company-provided iphones where google maps is set as the default.
I think you’re right, in that the extra prompt is coming from the in-app browser handling, as I see the same prompts when calling a phone number from my browser.
Ultimately, not the end of the world since it’s mainly just a QoL feature. Regardless, I appreciate your help.
Ah yeah, that makes sense. The comgooglemaps:// scheme should skip the in-app browser handoff entirely and open the app directly. Good call on the fallback too, I’ll check for Google Maps with canOpenURL first and drop back to the regular https://maps.google.com link if it’s not installed. That Docs in-app browser has been the culprit the whole time. Thanks, going to test this now.