[TIMOB-8819] BlackBerry: Implement Titanium.UI.EmailDialog
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-05-17T22:06:50.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 10 BB, 2013 Sprint 10, Release 3.1.2, Release 3.2.0 |
Components | BlackBerry |
Labels | blackberry, notable, qe-testadded |
Reporter | Josh Roesslein |
Assignee | Pedro Enrique |
Created | 2012-04-20T09:54:32.000+0000 |
Updated | 2013-10-25T08:05:05.000+0000 |
Description
Implement the EmailDialog which allows users to compose and send emails.
For BlackBerry we will use the invocation API to open the email application
on the device with pre-populated fields. This works similarly to Android and MobileWeb.
Acceptance Test
var win = Titanium.UI.createWindow({});
var btn = Ti.UI.createButton({
title: 'open'
});
win.add(btn);
// Opens email composer with pre-filled fields.
btn.addEventListener('click', function(){
var email = Ti.UI.createEmailDialog({
toRecipients: ['email@domain.com', 'email@domain.com'],
ccRecipients: ['email@domain.com'],
bccRecipients: ['email@domain.com'],
messageBody: 'This is the message body',
subject: 'this is a title',
html: true
});
email.open();
});
win.open();
**Note** This must be tested on device and the device needs to have at least one email account setup. If on simulator, it will not open the email dialog.
sz: coming later, there will only be an ability to launch an email app new-email with pre-populated input…
Not supported by Cascades directly. The only thing that can be done is launching an e-mail app and populating fields. This control should either be removed from Beta scope or implemented in a custom way.
Delaying this feature until we can workout issues with the Invocation for sending email.
Pull request with sample code and details on functionality: https://github.com/appcelerator/titanium_mobile_blackberry/pull/37
Verified fix with: Appcelerator Studio: 3.2.0.201310230601 SDK:3.2.0.v20131024120843 alloy: 1.2.2 acs: 1.0.7 npm: 1.3.2 titanium: 3.2.0 titanium-code-processor: 1.0.3 Device:Blackberry Z10(v 10.0) OS: OSX 10.9 Email Dialog working fine. Checked for email receive also.