{ "id": "153358", "key": "TIMOB-20066", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-01-07T07:16:12.000+0000", "created": "2015-11-21T14:45:30.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android", "notification", "style" ], "versions": [], "issuelinks": [ { "id": "50248", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "153482", "key": "TIMOB-20126", "fields": { "summary": "Android: Not able to see the multiline notification on the android device", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2017-08-22T12:55:20.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": "Currently [Titanium.Android.Notification|http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.Android.Notification] has not support for Big View Styles.\r\n\r\nAdd support for [BigTextStyle|http://developer.android.com/intl/ru/reference/android/app/Notification.BigTextStyle.html], [BigPictureStyle|http://developer.android.com/intl/ru/reference/android/app/Notification.BigPictureStyle.html].\r\n\r\nThis ticket created for future PR.", "attachment": [], "flagged": false, "summary": "Android: Add support for style in Titanium.Android.Notification", "creator": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "subtasks": [], "reporter": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "environment": "Android", "closedSprints": [ { "id": 555, "state": "closed", "name": "2016 Sprint 1 SDK", "startDate": "2016-01-02T01:31:50.127Z", "endDate": "2016-01-16T01:31:00.000Z", "completeDate": "2016-01-18T00:52:43.848Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "371341", "author": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/7489\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({layout:'vertical'});\r\n\r\nvar btn1 = Ti.UI.createButton({\r\n title : '1) Add Big Text Notification'\r\n});\r\n\r\nbtn1.addEventListener('click', function(e) {\r\n\tvar style = Titanium.Android.createBigTextStyle({\r\n \tbigText: \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\",\r\n \tbigContentTitle: \"Title for big text\",\r\n \tsummaryText: \"Summary for big text\"\r\n });\r\n \r\n\t// Create big text style the notification\r\n\tvar notification = Titanium.Android.createNotification({\r\n\t contentTitle: 'Something Happened',\r\n\t contentText : 'Click to return to the application.',\r\n\t style: style,\r\n\t time: Date.now()\r\n\t});\r\n\r\n // Send the notification.\r\n Titanium.Android.NotificationManager.notify(1, notification);\r\n});\r\n\r\nwin.add(btn1);\r\n\r\n//************************\r\n\r\nvar btn2 = Ti.UI.createButton({\r\n title : '2) Add Big Text Notification'\r\n});\r\n\r\nbtn2.addEventListener('click', function(e) {\r\n\r\n\tvar style = Ti.Android.createBigTextStyle();\r\n\tstyle.setBigText(\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\");\r\n\tstyle.setBigContentTitle('big title');\r\n\tstyle.setSummaryText('big summmary');\r\n\t \r\n\t// Create big text style the notification\r\n\tvar notification = Ti.Android.createNotification({\r\n\t contentTitle: 'Something Happened',\r\n\t contentText : 'Click to return to the application.',\r\n\t time: Date.now()\r\n\t});\r\n\t\r\n\tnotification.setStyle(style);\r\n\r\n // Send the notification.\r\n Titanium.Android.NotificationManager.notify(2, notification);\r\n});\r\n\r\nwin.add(btn2);\r\n\r\n//***************************\r\n\r\nvar btn3 = Ti.UI.createButton({\r\n title : '3) Add Big Image Notification'\r\n});\r\n \r\nbtn3.addEventListener('click', function(e) {\r\n\t// For test: \r\n\t// * Place the image http://codeversed.com/androidifysteve.png to corresponding folder. \r\n\t// * For example: Resources/android/images/res-xhdpi/ \r\n\t\r\n\t\t\r\n\t// Create big picture style the notification\r\n\tvar notification = Ti.Android.createNotification({\r\n\t contentTitle: 'Something Happened',\r\n\t contentText : 'Click to return to the application.',\r\n\t style: Ti.Android.createBigPictureStyle({\r\n\t \t//bigPicture: \"/images/androidifysteve.png\",\t \t\r\n\t \t//bigPicture: 'http://www.notetab.com/images/More-free-time-thanks-to-NoteTab.jpg',\r\n\t \tbigPicture: Ti.App.Android.R.drawable.androidifysteve,\r\n\t \tbigContentTitle: \"Title for big picture\",\r\n\t \tsummaryText: \"Summary for big picture\"\r\n\t }),\r\n\t time: Date.now()\r\n\t});\r\n\r\n // Send the notification.\r\n Titanium.Android.NotificationManager.notify(3, notification);\r\n});\r\n\r\nwin.add(btn3);\r\nwin.open();\r\n{code}\r\n", "updateAuthor": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "created": "2015-11-24T12:18:48.000+0000", "updated": "2015-11-24T13:22:53.000+0000" }, { "id": "371505", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~falko] Thanks for the PR! I'll look into this.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-11-26T02:13:47.000+0000", "updated": "2015-11-26T02:13:47.000+0000" }, { "id": "373974", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Document updates: https://github.com/appcelerator/titanium_mobile/pull/7619", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-01-07T03:41:48.000+0000", "updated": "2016-01-07T03:41:48.000+0000" }, { "id": "373989", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "The PR: https://github.com/appcelerator/titanium_mobile/pull/7489\r\nDocument updates: https://github.com/appcelerator/titanium_mobile/pull/7619\r\n\r\nBoth merged.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-01-07T07:02:31.000+0000", "updated": "2016-01-07T07:16:03.000+0000" }, { "id": "389152", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the implementation.\r\n\r\n{{style}} works as expected.\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 4.7.0.201606150733\r\nTi SDK : 5.4.0.v20160617074028\r\nTi CLI : 5.0.9\r\nAlloy : 1.9.0\r\nMAC El Capitan : 10.11.4\r\nAppc NPM : 4.2.7-2\r\nAppc CLI : 5.4.0-18\r\nNode: 4.4.4\r\nNexus 6 - Android 6.0.1\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-06-27T18:56:21.000+0000", "updated": "2016-06-27T18:56:21.000+0000" }, { "id": "394909", "author": { "name": "appsol", "key": "appsol", "displayName": "Muhammad Qasim", "active": true, "timeZone": "Asia/Karachi" }, "body": "Is it somehow possible to use this feature in ti.cloudpush module for push notifications???", "updateAuthor": { "name": "appsol", "key": "appsol", "displayName": "Muhammad Qasim", "active": true, "timeZone": "Asia/Karachi" }, "created": "2016-08-31T12:36:55.000+0000", "updated": "2016-08-31T12:36:55.000+0000" }, { "id": "427028", "author": { "name": "dirleidionisio", "key": "dirleidionisio", "displayName": "Dirlei DionĂ­sio", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "Is it somehow possible to use this feature in ti.cloudpush module for push notifications??? [2]", "updateAuthor": { "name": "dirleidionisio", "key": "dirleidionisio", "displayName": "Dirlei DionĂ­sio", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2017-08-22T12:55:20.000+0000", "updated": "2017-08-22T12:55:20.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }