Fixing mailTo: and external links on Android (iOS works fine)

Many Bubble developers report that mail links and external URLs open correctly on iOS, but fail on Android, especially within BubbleGo or wrapped Android apps. Here’s a clearer breakdown and solutions:


1. :white_check_mark: Enable Built-in Link Recognition


2. :puzzle_piece: Use JS to Trigger Native Handling on Android

Android wrappers (like Cordova-based) may not handle mailto: links out of the box. In such cases, use JavaScript:

js

CopyEdit

window.location.href = "mailto:user@example.com?subject=Hello";

This method bypasses internal webviews and invokes the Android system’s mail app. Works reliably even when standard links don’t .


3. :hammer_and_wrench: For InAppBrowser or WebView Wrappers

If your native shell uses a webview:

  • Ensure the config allows external schemes. In Cordova, you’d add:

xml

CopyEdit

<access origin="mailto:*" launch-external="true"/>
  • Then use:

js

CopyEdit

window.open('mailto:user@example.com', '_system');

This tells the wrapper to open links outside the webview forum.bubble.io+1forum.bubble.io+1.


:white_check_mark: Quick Testing Checklist

Step Action
1 Enable Recognize links and emails in Bubble text elements.
2 Test simple mailto: functionality in BubbleGo for both platforms.
3 If Android fails, add a small JS action (using an HTML element or plugin) triggered on tap:

js

CopyEdit

window.location.href = "mailto:someone@example.com";
``` |
| 4 | Wrap and retest. |
| 5 | If still blocked, ensure your native wrapper (e.g. Cordova) allows external intents. |

---

Applied together, these fixes usually resolve most Android-specific link issues. Let me know what you see after testing—happy to help further!
::contentReference[oaicite:12]{index=12}