{ "id": "132529", "key": "AC-1365", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-07-10T00:38:00.000+0000", "created": "2014-07-02T19:18:50.000+0000", "labels": [ "ios", "pushnotification" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:37:46.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": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "setting appbadge will prompt the user with a push notification permission request dialog.\r\nTo replicate, just set the appbadge to something: Ti.UI.iPhone.appBadge = 1;\r\n\r\nthe expected behavior is to not do anything.\r\n\r\nwe should prompt for that permission by explicitly calling Ti.Network.registerForPushNotifications", "attachment": [], "flagged": false, "summary": "setting appbadge causes request for push notification prompt", "creator": { "name": "wahyudinata", "key": "wahyudinata", "displayName": "wahyudinata setiawan", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "wahyudinata", "key": "wahyudinata", "displayName": "wahyudinata setiawan", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "IOS device", "comment": { "comments": [ { "id": "312485", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "We tried to reproduce this issue with a sample test case. It’s working as expected with Titanium SDK 3.3.0 RC. Please try the sample code and let us know if the problem persists.\r\n \r\nh5. TESTING ENVIRONMENT:\r\n \r\nTi CLI 3.3.0-rc\r\nTitanium SDK: 3.3.0.RC\r\niOS device 7.1\r\n \r\n \r\nh5. Sample Code\r\n {code}\r\nvar win = Titanium.UI.createWindow({\r\ntitle:'ACS iOS App',\r\nbackgroundColor:'#fff'\r\n});\r\n \r\nTi.UI.iPhone.appBadge=1;\r\n \r\nwin.open();\r\n {code}\r\n \r\nh5. STEPS TO TEST\r\n \r\n1. Create a new project\r\n2. Update app.js file with sample code\r\n4. And run on iOS device 7.1\r\n5. Works fine\r\n \r\n5. EXPECTED RESULT\r\n \r\nIt’s working as expected.\r\n\r\nThanks ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-07-07T03:42:04.000+0000", "updated": "2014-07-10T00:37:50.000+0000" }, { "id": "313158", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Fixed in 3.3.0. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-07-10T00:38:00.000+0000", "updated": "2014-07-10T00:38:00.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }