I’m trying to open the native mail client (e.g., Gmail) from a button in Retool Mobile using the Open URL action.
For emails, I’m using:
{{ "mailto:" + item.email }}
nothing happens, no error, no Gmail app, no prompt.
I also tried unchecking Open in a new tab and different URL formats, but the result is the same.
Hello @Laiba_Saleem Welcome to The Retool Community,
In Retool Mobile, the Open URL action won’t handle mailto: or tel: links properly in many cases, because the in-app webview doesn’t know how to hand those over to the native email/phone apps. That’s why nothing is happening when you click your button.
I’ve tested some reliable workarounds, and they’re working perfectly in my app :
- Paste this in click handler
{{ ("mailto:" + item.email) }}
I’ve also included screenshots for clarity :
If you have any questions, feel free to reach out!
2 Likes