Android build crashes after following href=''

Hello! I supposed it would be very easy to do this. If I put an external http link, the app opens the default native browser to follow the link, but it crashes trying to follow the mailto, no email client got opened. I tried different ways of opening the “mailto:…” but none with success.

The errors that I can see in Android Studio are:

E/AndroidRuntime: FATAL EXCEPTION: main
Process: ionic.hola, PID: 10208
java.lang.NullPointerException: Attempt to invoke virtual method ‘boolean java.lang.String.equals(java.lang.Object)’ on a null object reference
at com.getcapacitor.Bridge.launchIntent(
at com.getcapacitor.BridgeWebViewClient.shouldOverrideUrlLoading(
at org.chromium.android_webview.AwContentsClientBridge.shouldOverrideUrlLoading(chromium-TrichromeWebViewGoogle6432.apk-stable-506007137:46)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.Looper.loopOnce(
at android.os.Looper.loop(
at java.lang.reflect.Method.invoke(Native Method)

I have this element rendered in ionic and the app crashes when I press the link in the screen:

Send Mail

Is it normal that this doesn’t work?

Thank you!!!

It’s a known bug that has been fixed but not released yet

1 Like

Thank you. I will be paying attention to that :slight_smile: