{ "id": "128604", "key": "AC-1529", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2014-04-09T00:38:21.000+0000", "created": "2014-04-02T20:08:13.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "updated": "2016-03-08T07:37:59.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": [], "description": "This may be hard to reproduce, but I created an adhoc build and installed on my friend's iphone 5.\r\n\r\nTi.Network.remoteNotificationsEnabled incorrectly said it was disabled for his device (I checked his notification center and my app was not listed anywhere).\r\n\r\nAfter I removed this check from my code, it correctly prompted him for push notifications.", "attachment": [], "flagged": false, "summary": "remoteNotificationsEnabled is sometimes incorrect on iOS", "creator": { "name": "chillyb", "key": "chillyb", "displayName": "billy", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "chillyb", "key": "chillyb", "displayName": "billy", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iPhone 5", "comment": { "comments": [ { "id": "300070", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Can you please provide a simple runnable test case to reproduce this issue?", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-07T17:54:04.000+0000", "updated": "2014-04-07T17:54:04.000+0000" }, { "id": "300174", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "I have tested on my iphone device with Ti.Network.remoteNotificationsEnabled, it works properly. \nPlease check your code logic. \nTi.Network.remoteNotificationsEnabled indicates whether push notifications have been enabled using registerForPushNotifications.\nso it will be set to true or 1 after you success to register for PushNotification.\n\nIf you still have this problem, please provide a simple runnable test case to reproduce this issue.", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-04-08T04:04:01.000+0000", "updated": "2014-04-08T04:04:01.000+0000" }, { "id": "300206", "author": { "name": "chillyb", "key": "chillyb", "displayName": "billy", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I see the confusion. It's wasn't clear that remoteNotificationsEnabled indicates whether or not the user has given permissions to notifications.\n\nI was looking for a method that says whether or not the device supports remote notifications.\n\nThis could be a bit clearer in the doc. Sorry for the mixup.", "updateAuthor": { "name": "chillyb", "key": "chillyb", "displayName": "billy", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-08T15:18:28.000+0000", "updated": "2014-04-08T15:18:28.000+0000" }, { "id": "300329", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Not our bug. ", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-04-09T00:38:21.000+0000", "updated": "2014-04-09T00:38:21.000+0000" }, { "id": "300330", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Not our bug", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-04-09T00:38:48.000+0000", "updated": "2014-04-09T00:38:48.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }