{ "id": "147679", "key": "TIMOB-23533", "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": "11258", "description": "Holding Pen for Triaged Issues", "name": "Backlog", "archived": false, "released": false } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2017-04-21T04:07:08.000+0000", "created": "2015-05-08T22:50:05.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-4.0.0", "user_experience" ], "versions": [ { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "issuelinks": [ { "id": "52651", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "outwardIssue": { "id": "140613", "key": "TIDOC-2018", "fields": { "summary": "Missing info on documentation for Ti.Network.registerForPushNotifications and deviceToken", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "47655", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "142408", "key": "TIMOB-19233", "fields": { "summary": "Android: liveview throws error related to cloudPush when changes are made to an android pushnotification app ", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-04-23T21:46:01.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" }, { "id": "13600", "name": "LiveView", "description": "Live preview of Titanium apps" } ], "description": "*Details:* If you have LiveView enabled, then you cannot registerForPushNotifications on iOS.\r\n\r\n*Note:* To workaround this issue, turn off LiveView. \r\n\r\n*Steps to reproduce:*\r\n# Make sure you have a valid provisioning profile for iOS push \r\n# Create a Titanium app with services enabled\r\n# On platform.appcelerator.com, make sure to setup iOS push\r\n# Next, download, unzip, and copy contents of Archive.zip into Titanium Resources directory\r\n# Enable LiveView\r\n# Install app to device\r\n# Once the app is launched, go to *Push Notifications > Settings for This Device*\r\n# Click the *Disabled* button to *Enable* push notification\r\n\r\n*Actual:* Device token is not retrieved i.e. {{Ti.Network.registerForPushNotifications}} is not registering the {{success}} callback; go to {{Resources/windows/pushNotifications/pushManager.js}} and see line 76.\r\n\r\n*Expected:* Device token should be retrieved from ACS; see attachment.", "attachment": [ { "id": "55304", "filename": "Archive.zip", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-05-08T22:47:09.000+0000", "size": 8752, "mimeType": "application/zip" }, { "id": "55305", "filename": "Screen Shot 2015-05-08 at 3.35.26 PM.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-05-08T22:46:58.000+0000", "size": 150059, "mimeType": "image/png" } ], "flagged": false, "summary": "If you have LiveView enabled, then you cannot registerForPushNotifications on iOS", "creator": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Appcelerator Studio, build: 4.0.0.201505070727\r\nAppc CLI NPM: 0.3.55\r\nAppc CLI Registry: 0.2.282\r\nSDK: 4.0.0.RC2\r\nNode: v0.10.36\r\nXcode: 6.3.1\r\nDevice: iphone 6+ (8.3)\r\nOS: Yosemite (10.10.3)", "closedSprints": [ { "id": 883, "state": "closed", "name": "2017 Sprint 09 SDK", "startDate": "2017-04-23T21:46:54.309Z", "endDate": "2017-05-07T21:46:00.000Z", "completeDate": "2017-05-08T00:25:44.276Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "352092", "author": { "name": "bgrantges@appcelerator.com", "key": "bgrantges", "displayName": "Bert Grantges", "active": false, "timeZone": "America/Chicago" }, "body": "If for whatever reason this is not fixable - we should provide some messaging to the developer if at all possible that they are trying to register push notifications with liveView enabled and there is a known conflict.", "updateAuthor": { "name": "bgrantges@appcelerator.com", "key": "bgrantges", "displayName": "Bert Grantges", "active": false, "timeZone": "America/Chicago" }, "created": "2015-05-08T22:57:22.000+0000", "updated": "2015-05-08T22:57:22.000+0000" }, { "id": "417013", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Simple Use case :\r\n\r\n\r\n{code:java}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\nwin.open();\r\nTi.App.iOS.addEventListener('usernotificationsettings', e = function(v) {\r\n \r\n console.log(\"In usernotificationsettings: \" + JSON.stringify(v));\r\n \r\n Ti.App.iOS.removeEventListener('usernotificationsettings', e);\r\n Ti.Network.registerForPushNotifications({\r\n success: onSuccess,\r\n error: deviceTokenError,\r\n callback: receivePush\r\n });\r\n});\r\n \r\nTi.App.iOS.registerUserNotificationSettings({\r\n types: [\r\n Ti.App.iOS.USER_NOTIFICATION_TYPE_ALERT,\r\n Ti.App.iOS.USER_NOTIFICATION_TYPE_SOUND,\r\n Ti.App.iOS.USER_NOTIFICATION_TYPE_BADGE\r\n ]\r\n});\r\n \r\nvar onSuccess = function(e) {\r\n \r\n Ti.API.info(\"TOKEN: \" + e.deviceToken);\r\n alert('Device token is retrieved: ' + e.deviceToken);\r\n \r\n // do stuff\r\n};\r\n \r\nvar receivePush = function(e) {\r\n Ti.API.info('Received push: ' + JSON.stringify(e));\r\n};\r\n \r\nvar deviceTokenError = function(e) {\r\n Ti.API.info('Failed to register for push notifications! ' + e.error);\r\n};\r\n{code}", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-04-07T08:31:56.000+0000", "updated": "2017-04-07T08:31:56.000+0000" }, { "id": "417014", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I verified on 6.1.0 and 6.2.0 , it is working fine. It is not working before 6.1.0.\r\n[~ewieber] Can you please verify and close it.", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-04-07T08:33:33.000+0000", "updated": "2017-04-07T08:33:33.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }