This repository has been archived by the owner on Jun 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 58
How to Open Native Maps App
Camilo edited this page Jul 27, 2020
·
1 revision
If you want to open the native map view you need to
simply use $href
with the special url maps.apple.com
(iOS)
or maps.google.com
. (Android). And the app
view.
Put this code inside the actions
object.
{
"open_map": {
"type": "$href",
"options": {
"view": "app",
"transition": "modal",
"url": [{
"{{#if $env.device.os.name === 'ios'}}": "https://maps.apple.com?ll=-33.44402500439274,-70.65428849999995&z=14"
},
{
"{{#else}}": "https://maps.google.com?center=-33.44402500439274,-70.65428849999995&zoom=14"
}
]
}
}
}
And call it with trigger
.
{
"action": {
"trigger" : "open_map"
}
}
- Telegram: https://t.me/jasonelle
- Website: https://jasonelle.com
- Additional: https://jasonelle-archive.github.io/docs/legacy/