[TIMOB-8854] iOS: iPad - EmailDialog does not show up on device
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Cannot Reproduce |
| Resolution Date | 2012-04-30T15:31:09.000+0000 |
| Affected Version/s | Release 1.8.2, Release 2.0.1 |
| Fix Version/s | Release 2.1.0, Sprint 2012-09 API |
| Components | iOS |
| Labels | api |
| Reporter | Jon Alter |
| Assignee | Vishal Duggal |
| Created | 2012-04-20T14:21:04.000+0000 |
| Updated | 2017-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();
Moving out of core.
don't have a iPad with me right now. So putting it back in the queue
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.
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();Closing ticket as this issue cannot be reproduced.