{ "id": "160889", "key": "TIMOB-23482", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "20060", "description": "", "name": "Release 7.0.2", "archived": false, "released": true, "releaseDate": "2018-02-09" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-01-19T23:15:39.000+0000", "created": "2016-06-07T08:50:43.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "emaildialog", "outlook" ], "versions": [], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-01-22T18:35:57.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "I use createEmailDialog to send emails and attach locally created files to them.\r\n\r\nOn Android the attachment does not get added if the user selects to send the email via Outlook. Everything works correctly if the user selects to send the email via Gmail.\r\n\r\nPlease see screenshots in attachments\r\n\r\n{code:title=code used to test}\r\n\r\nvar emailDialog = Ti.UI.createEmailDialog({});\r\nemailDialog.subject = \"Test email with attachment\";\r\nemailDialog.toRecipients = [\"test@me.com\"];\r\nemailDialog.messageBody = 'the file should be attached';\r\n\r\nvar file = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, \"test.txt\");\r\n\t\t\r\nemailDialog.addAttachment(file);\r\n\t\r\nemailDialog.open();\r\n{code}\r\n", "attachment": [ { "id": "59513", "filename": "gmail.png", "author": { "name": "martz256", "key": "martz256", "displayName": "Martyn Joyce", "active": true, "timeZone": "Europe/London" }, "created": "2016-06-07T08:48:41.000+0000", "size": 95128, "mimeType": "image/png" }, { "id": "59512", "filename": "outlook.png", "author": { "name": "martz256", "key": "martz256", "displayName": "Martyn Joyce", "active": true, "timeZone": "Europe/London" }, "created": "2016-06-07T08:48:41.000+0000", "size": 84102, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: EmailDialog fails to attach files when using Outlook", "creator": { "name": "martz256", "key": "martz256", "displayName": "Martyn Joyce", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "martz256", "key": "martz256", "displayName": "Martyn Joyce", "active": true, "timeZone": "Europe/London" }, "environment": "Operating System\r\n Name = Mac OS X\r\n Version = 10.11.4\r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 8.0GB\r\n\r\nNode.js\r\n Node.js Version = 4.2.2\r\n npm Version = 2.14.7\r\n\r\nAppcelerator CLI\r\n Installer = 4.2.6\r\n Core Package = 5.3.0\r\n\r\nTitanium CLI\r\n CLI Version = 5.0.8\r\n node-appc Version = 0.2.31\r\n\r\nTitanium SDKs\r\n 5.3.0.GA\r\n Version = 5.3.0", "comment": { "comments": [ { "id": "387747", "author": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\nI am able to reproduce this issue with given code and given step.\r\n*Steps:*\r\n1. Create a default classic project for android with following code.\r\n{code}\r\nvar win = Titanium.UI.createWindow({\r\n\ttitle : 'Tab 1',\r\n\tbackgroundColor : '#fff'\r\n});\r\n\r\nwin.open();\r\n\r\nvar emailDialog = Ti.UI.createEmailDialog({});\r\n\r\nemailDialog.subject = \"Test email with attachment\";\r\n\r\nemailDialog.toRecipients = [\"test@me.com\"];\r\n\r\nemailDialog.messageBody = 'the file should be attached';\r\n\r\nvar file = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, \"test.txt\");\r\n\r\nemailDialog.addAttachment(file);\r\n\r\nemailDialog.open();\r\n\r\n{code}\r\n2. Paste test.txt file in resources folder.\r\n3. Build and run the app on android device.\r\n\r\nResult : On Android the attachment does not get added if the user selects to send the email via Outlook. Everything works correctly if the user selects to send the email via Gmail.\r\n\r\nNote: To test this issue Gamil and Outlook app must be installed in the device\r\n\r\n*Environment*:\r\n\r\n*Device info:* HTC One (Android 4.4.3)\r\n*Node.js Version:* 0.12.7\r\n*npm Version:* 2.11.3\r\n*Titanium SDKs:* 5.3.0.GA\r\n*Java Development Kit Version:* 1.8.0_73\r\n*Titanium CLI Version:* 5.0.5\r\n*Appcelerator CLI Version:* 5.2.2\r\n*Appcelerator Studio:* 4.5.0", "updateAuthor": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2016-06-07T10:03:05.000+0000", "updated": "2016-06-07T10:10:56.000+0000" }, { "id": "387823", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Based on what's happening, it looks like the Outlook application is not handling the receiving of the attachment.\r\nI believe there is nothing wrong with it. (I can be wrong but I'm leaning towards that Outlook is not handling the attachment correct).\r\n\r\nAnother way to do this is to use Intents. http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Android.Intent ", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-06-08T07:12:46.000+0000", "updated": "2016-06-08T07:12:46.000+0000" }, { "id": "387827", "author": { "name": "martz256", "key": "martz256", "displayName": "Martyn Joyce", "active": true, "timeZone": "Europe/London" }, "body": "ok, thanks for looking into it", "updateAuthor": { "name": "martz256", "key": "martz256", "displayName": "Martyn Joyce", "active": true, "timeZone": "Europe/London" }, "created": "2016-06-08T08:25:34.000+0000", "updated": "2016-06-08T08:25:34.000+0000" }, { "id": "387828", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~martz256] Please let us know if there's any updates you want to give.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-06-08T08:28:50.000+0000", "updated": "2016-06-08T08:28:50.000+0000" }, { "id": "431576", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I've confirmed that the fix for [TIMOB-25541] fixes this issue as well...\r\n\r\nPR (master): https://github.com/appcelerator/titanium_mobile/pull/9520", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-01T00:17:00.000+0000", "updated": "2017-12-01T00:17:00.000+0000" }, { "id": "432886", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (7.0.x): https://github.com/appcelerator/titanium_mobile/pull/9709", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-01-09T02:27:27.000+0000", "updated": "2018-01-09T02:27:27.000+0000" }, { "id": "432986", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR passed for master & PR merged.\r\nFR passed for backport , waiting for merge to get enabled.\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-01-10T18:14:49.000+0000", "updated": "2018-01-10T18:14:49.000+0000" }, { "id": "433351", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Master & backport PR's merged.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-01-19T23:15:32.000+0000", "updated": "2018-01-19T23:15:32.000+0000" }, { "id": "433475", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with SDK 7.1.0.v20180121202754 & 7.0.2.v20180119173957.\r\n\r\nClosing.\r\n\r\nStudio Ver: 5.0.0.201712081732\r\nSDK Ver: 7.0.2.v20180119173957, 7.1.0.v20180121202754\r\nOS Ver: 10.13.2\r\nXcode Ver: Xcode 9.2\r\nAppc NPM: 4.2.11\r\nAppc CLI: 7.0.1\r\nDaemon Ver: 1.0.1\r\nTi CLI Ver: 5.0.14\r\nAlloy Ver: 1.10.10\r\nNode Ver: 8.9.1\r\nNPM Ver: 5.5.1\r\nJava Ver: 1.8.0_101\r\nDevices: samsung SM-G955U1 — Android 7.0\r\ngoogle Nexus 5 — Android 6.0.1\r\ngoogle Pixel — Android 7.1.1\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-01-22T18:35:49.000+0000", "updated": "2018-01-22T18:35:49.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }