{ "id": "149488", "key": "TIMOB-19184", "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": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-10-19T16:03:28.000+0000", "created": "2015-07-07T08:11:02.000+0000", "epic": { "id": 149396, "key": "TIMOB-19145", "name": "iOS: iOS 9 Updates", "summary": "iOS: iOS9 Updates", "color": { "key": "color_1" }, "done": false }, "priority": { "name": "Medium", "id": "3" }, "labels": [ "notification", "pushnotification" ], "versions": [], "issuelinks": [ { "id": "51021", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "155640", "key": "TIMOB-20552", "fields": { "summary": "Android N: Implement Direct Reply like Ti.App.iOS.USER_NOTIFICATION_BEHAVIOR_TEXTINPUT", "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": "Critical", "id": "1" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2016-03-11T12:20:35.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Via the userNotificationAction new property behavior, iOS9 now allows keyboard input as an action on the lock screen.\r\n\r\nReference:\r\nhttps://developer.apple.com/library/prerelease/ios/releasenotes/General/iOS90APIDiffs/frameworks/UIKit.html\r\n\r\nSample code:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: \"#fff\"\r\n});\r\nvar btn = Ti.UI.createButton({\r\n title: \"Schedule local notification!\"\r\n});\r\n\r\nbtn.addEventListener(\"click\", scheduleLocalNotification);\r\n\r\nfunction scheduleLocalNotification() {\r\n\r\n var acceptAction = Ti.App.iOS.createUserNotificationAction({\r\n identifier: \"ACCEPT_IDENTIFIER\",\r\n title: \"Reply\",\r\n activationMode: Ti.App.iOS.USER_NOTIFICATION_ACTIVATION_MODE_FOREGROUND,\r\n destructive: false,\r\n behavior: Ti.App.iOS.USER_NOTIFICATION_BEHAVIOR_TEXTINPUT, // Ti.App.iOS.USER_NOTIFICATION_BEHAVIOR_DEFAULT,\r\n authenticationRequired: true\r\n });\r\n\r\n var invitationCategory = Ti.App.iOS.createUserNotificationCategory({\r\n identifier: \"TEST_CATEGORY\",\r\n actionsForDefaultContext: [acceptAction],\r\n actionsForMinimalContext: [acceptAction]\r\n });\r\n\r\n Ti.App.iOS.registerUserNotificationSettings({\r\n types: [Ti.App.iOS.USER_NOTIFICATION_TYPE_ALERT, Ti.App.iOS.USER_NOTIFICATION_TYPE_BADGE],\r\n categories: [invitationCategory]\r\n });\r\n\r\n Ti.App.iOS.scheduleLocalNotification({\r\n date: new Date(new Date().getTime() + 3000),\r\n alertBody: \"New message from Hans! Reply?\",\r\n badge: 1,\r\n category: \"TEST_CATEGORY\"\r\n });\r\n};\r\n\r\nTi.App.iOS.addEventListener('localnotificationaction', function(e) {\r\n Ti.API.info(JSON.stringify(e));\r\n\r\n if (e.typedText && e.typedText.length > 0) {\r\n alert(e.typedText);\r\n }\r\n});\r\n\r\nwin.add(btn);\r\nwin.open();\r\n{code}", "attachment": [ { "id": "56584", "filename": "Screen Shot 2015-09-02 at 13.01.44.png", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-09-02T20:05:15.000+0000", "size": 242127, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS9: Add behavior property to userNotificationAction", "creator": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 481, "state": "closed", "name": "2015 Sprint 18 SDK", "startDate": "2015-08-29T00:30:25.440Z", "endDate": "2015-09-12T00:30:00.000Z", "completeDate": "2015-09-14T05:24:05.135Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "362088", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~cng] Implemented two new constants {{Ti.App.iOS.USER_NOTIFICATION_BEHAVIOR_DEFAULT}} and {{Ti.App.iOS.USER_NOTIFICATION_BEHAVIOR_TEXTINPUT}}, added the new property {{behavior}} to our proxy. Looks fine so far (see attached screen). Docs and sample are coming!\r\n\r\nChanged from 5.0.2 to 5.0.1, ok?", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-09-02T20:04:59.000+0000", "updated": "2015-09-02T21:40:33.000+0000" }, { "id": "362093", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Sample code added.\r\n\r\nPR: https://github.com/appcelerator/titanium_mobile/pull/7120", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-09-02T21:07:47.000+0000", "updated": "2015-09-02T21:07:47.000+0000" }, { "id": "362632", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR Merged.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-09T06:53:09.000+0000", "updated": "2015-09-09T06:53:09.000+0000" }, { "id": "363566", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR to fix backward compatibility with Xcode 6.4 here: https://github.com/appcelerator/titanium_mobile/pull/7165\r\n\r\nPR merged", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-11T00:48:28.000+0000", "updated": "2015-09-11T00:48:28.000+0000" }, { "id": "366734", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed, using:\r\n\r\nMacOS 10.11 (15A284)\r\nStudio 4.4.0.201510092420\r\nTi SDK 5.1.0.v20151013151603\r\nAppc NPM 4.2.1-1\r\nAppc CLI 5.1.0-38\r\nTi CLI 5.0.5\r\nAlloy 1.7.16\r\nArrow 1.3.13\r\nXcode 7.0.1 (7A1001)\r\nNode v4.1.0\r\nJava 1.7.0_80\r\nproduction\r\n\r\nAble to successfully send, receive, and reply to user notifications in app, on the home screen, and on the lock screen. Used the provided sample code and made modifications to test the different scenarios.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-10-14T00:05:24.000+0000", "updated": "2015-10-14T00:05:24.000+0000" }, { "id": "367038", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Reopening to address push notifications", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-10-16T21:17:38.000+0000", "updated": "2015-10-16T21:17:38.000+0000" }, { "id": "367087", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Spent my day to reproduce the outstanding issue with remote notifications. They work. We need to supply a category in the aps like done natively and proposed by Apple:\r\n\r\n{code}\r\n{\r\n \"alert\": \"Test\"\r\n \"category\": \"INVITE_CATEGORY\"\r\n}\r\n{code}\r\n\r\nThe text fields appears and the callback works. [~ewieber] please confirm and close the issue.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-10-18T04:23:50.000+0000", "updated": "2015-10-18T04:23:50.000+0000" }, { "id": "367154", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed using:\r\n\r\nMacOS 10.11 (15A284)\r\nStudio 4.4.0.201510161811\r\nTi SDK 5.1.0.v20151016172827\r\nAppc NPM 4.2.1-5\r\nAppc CLI 5.1.0-38\r\nTi CLI 5.0.5\r\nAlloy 1.7.16\r\nArrow 1.3.13\r\nXcode 7.0.1 (7A1001)\r\nNode v0.12.7\r\nJava 1.7.0_80\r\nproduction\r\n\r\nRemote notifications work as well. Push notifications sent can be interacted with via buttons and text input on the home and lock screens.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-10-19T16:03:29.000+0000", "updated": "2015-10-19T16:03:29.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }