Titanium JIRA Archive
Appcelerator Community (AC)

[AC-236] Android EmailDialog result needs not always be set to sent

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionNeeds more info
Resolution Date2015-11-05T11:41:17.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterAndrew McElroy
AssigneeMostafizur Rahman
Created2015-07-16T21:54:48.000+0000
Updated2017-04-06T11:49:54.000+0000

Description

http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.EmailDialog-event-complete On Android, this property will return SENT when the user discards or saves a message. This is not feature parity with iOS which can do the following This API can be assigned the following constants: CANCELLED FAILED SAVED SENT Please make the Android API have feature parity with iOS. Thanks

Comments

  1. Radamantis Torres-Lechuga 2015-07-16

    [~sophrinix] can you please attach a test case?
  2. Mostafizur Rahman 2015-11-03

    Hello Could you please attach a runnable test case, steps to reproduce this issue and your working environment details? Thanks.
  3. Michael Gangolf 2017-04-06

    Problem still exists. There is even a comment in the source code at: https://github.com/appcelerator/titanium_mobile/blob/a8aceeaeee02ed9c8ea70c835a0e78960e254a55/android/modules/ui/src/java/ti/modules/titanium/ui/EmailDialogProxy.java#L161 Demo (from the documentation + event)
       var emailDialog = Ti.UI.createEmailDialog()
       emailDialog.subject = "Hello from Titanium";
       emailDialog.toRecipients = ['foo@yahoo.com'];
       emailDialog.messageBody = '<b>Appcelerator Titanium Rocks!</b>';
       var f = Ti.Filesystem.getFile('cricket.wav');
       emailDialog.addAttachment(f);
       emailDialog.open();
       emailDialog.addEventListener("complete",function(e){ console.log(e);});
       
    If you press cancel/on the grey area when you see the "select email program" it will still show a "send" in the complete event

JSON Source