Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8854] iOS: iPad - EmailDialog does not show up on device

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2012-04-30T15:31:09.000+0000
Affected Version/sRelease 1.8.2, Release 2.0.1
Fix Version/sRelease 2.1.0, Sprint 2012-09 API
ComponentsiOS
Labelsapi
ReporterJon Alter
AssigneeVishal Duggal
Created2012-04-20T14:21:04.000+0000
Updated2017-03-22T23:13:35.000+0000

Description

The emailDialog does not show on iPad 3 iOS 5.1 but it works on iPad 2 iOS 5.0.1

Steps to reproduce:

Step 1: run the code below on the iPad 3 iOS 5.1 Step 2: click on the blue screen Step 3: notice that that email dialog does not open Step 4: repeat the same steps on the iPad 2 iOS 5.0.1 and it show the dialog
var win = Ti.UI.createWindow({
	backgroundColor: 'blue'
});
win.addEventListener('click', function(){
	Ti.API.info('Mail');
	var emailDialog = Titanium.UI.createEmailDialog();
	emailDialog.subject = "Subject";
	emailDialog.messageBody = 'Hi,\n'+'This is the body';
	emailDialog.open();
});
win.open();

Comments

  1. Stephen Tramer 2012-04-26

    Moving out of core.
  2. Sabil Rahim 2012-04-30

    don't have a iPad with me right now. So putting it back in the queue
  3. Vishal Duggal 2012-04-30

    Can not reproduce on either master or 1_8_X with the test sample provided. My setup is with Xcode 4.3. Waiting for verification that this is not a setup issue (testing with Xcode 4.2) before marking issue as can not reproduce.
  4. Vishal Duggal 2012-04-30

    Can not reproduce. Probably occurring because there is no mail account on the device. In that case a complete event is fired with success false. Modify the sample as follows to test. If there is no account the error will be "system can't send email".
       var win = Ti.UI.createWindow({
           backgroundColor: 'blue'
       });
       win.addEventListener('click', function(){
           Ti.API.info('Mail');
           var emailDialog = Titanium.UI.createEmailDialog();
           emailDialog.subject = "Subject";
           emailDialog.messageBody = 'Hi,\n'+'This is the body';
           emailDialog.open();
           
           emailDialog.addEventListener('complete',function(e){
           	if(e.success)
           	{
           		Ti.API.info("Mail Sent");
           	}
           	else
           	{
           		Ti.API.info(e.error);//"system can't send email" means no account on device"
           	}
           })
       });
       win.open();
       
  5. Lee Morris 2017-03-22

    Closing ticket as this issue cannot be reproduced.

JSON Source