Please fix mailto errors for android 11 - Mendix Forum

Please fix mailto errors for android 11

2

Hi, we have a problem opening email adresses in android 11 from a mendix native app, can you please add an intent to open mailto's in the androidmanifest.xml's of mendix nativetemplate? at the queries tag add intent of mailto :

 <intent>
<action android:name="android.intent.action.VIEW"/>
<data android:scheme="mailto"/>
</intent>

 

and add to the intent-filter after activity the following:
<activity ...>
<intent-filter>
    <action android:name="android.intent.action.SENDTO" />
    <data android:scheme="mailto" />
    <category android:name="android.intent.category.DEFAULT" />
</intent-filter>
more info on: https://stackoverflow.com/questions/59314608/android-studio-mailto-intent-doesnt-show-subject-and-mail-body

asked
1 answers

It seems this is still an issue on Android. We are running into the same problem on Android 13 devices. The DraftEmail JavaScript action isn't working (doesn't give an error, just returns false). The above seems to be the solution (also see React Native Linking documentation).

Created