Search code examples
androidappceleratorappcelerator-titanium

HTML links in emails on Android


So, I've been trying to get this to work properly on Android, but for some reason, the mails being sent are not going out with the links. This works on iOS.

var emailDialog = Titanium.UI.createEmailDialog();

if (emailDialog.isSupported()) {
    emailDialog.subject = 'Sharing my app';
    emailDialog.messageBody = 'I want to share with you my app.<br/><br/>Download it to your mobile device to:<br/><br/>• Access cool stuff<br/>• Personalize stuff<br/>• Do even more stuff<br/>• Share content<br/><br/>Visit <a href="https://play.google.com/store/apps/details?id=testigtime&hl=en">Google Play Store</a> or the <a href="https://itunes.apple.com/en/genre/ios/">Apple App Store</a> to download My App for phone or tablet now.<br/><br/>Best,<br/>[Name]';
    emailDialog.html = true;
    emailDialog.open();
}

As you can see, there are two links. This properly pops up the mail dialog, and it even displays the texts Google Play Store and Apple App Store as blue links. Once I hit send and see how it went through, it appears to completeley remove the links. Can anyone help out?


Solution

  • This seems related to the Android email client you use as suggested in this answer.

    I'd suggest you install an alternative (bleeding edge) email app and see if that resolves it. Then we know for sure it's the default Android email client. If not, then it might be worth to create an Appcelerator JIRA ticket to have this looked into.

    What Android version did you got this with?