{ "id": "115267", "key": "TIMOB-14062", "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": "15547", "description": "2013 Sprint 14", "name": "2013 Sprint 14", "archived": true, "released": true, "releaseDate": "2013-07-15" }, { "id": "15548", "description": "2013 Sprint 14 API", "name": "2013 Sprint 14 API", "archived": true, "released": true, "releaseDate": "2013-07-15" }, { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-07-03T17:23:31.000+0000", "created": "2013-05-31T04:54:59.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "calendar", "iOS", "qe-testadded", "triage" ], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-08-23T11:10:52.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": "EventsAuthorizationResponse always return success in the first time even if the user press 'Don't Allow' button on the dialog requesting permission.\r\nHere is the test case:\r\n{code}\r\nif(Ti.Calendar.eventsAuthorization == Ti.Calendar.AUTHORIZATION_AUTHORIZED) {\r\n // performCalendarReadFunctions();\r\n } else {\r\n Ti.Calendar.requestEventsAuthorization(function(e){\r\n if (e.success) {\r\n alert('You have granted access to the calendar');\r\n //performCalendarReadFunctions();\r\n } else {\r\n alert('Access to calendar is not allowed');\r\n }\r\n });\r\n\r\n}\r\n{code}\r\n\r\nScenarios which are tested are as follow:\r\n\r\n1. First time authorization and user press 'Don't allow' button: We get 'Success' alert but still No calendar is shown.\r\n\r\n2. After first authorization when 'Don't allow' was pressed : We get 'error' callback.\r\n\r\n3. First time authorization and user press 'OK' button : We get 'Success' alert and calendar is shown.\r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS Calendar: EventsAuthorizationResponse always return success in the first time even if the user press 'Don't Allow' button on the dialog requesting permission", "creator": { "name": "mpathak", "key": "mpathak", "displayName": "Meenakshi Pathak", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mpathak", "key": "mpathak", "displayName": "Meenakshi Pathak", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS 6.1", "comment": { "comments": [ { "id": "260668", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR against master https://github.com/appcelerator/titanium_mobile/pull/4435", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-02T22:02:04.000+0000", "updated": "2013-07-02T22:02:04.000+0000" }, { "id": "263269", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Backport to 3_1_X\nhttps://github.com/appcelerator/titanium_mobile/pull/4494", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-07-25T22:30:29.000+0000", "updated": "2013-07-25T22:30:29.000+0000" }, { "id": "266718", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix & now it returns 'access to calendar is not allowed' the first time after pressing 'don't allow' button.\r\nThus closing.\r\n\r\nEnvironment:\r\nAppcel Studio : 3.1.2.201308091728\r\nTi SDK : 3.1.2.v20130814124556\r\nMac OSX : 10.8.4\r\nAlloy : 1.2.0-beta\r\nCLI - 3.1.2-alpha\r\nIphone5 - 6.0", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-08-15T18:36:09.000+0000", "updated": "2013-08-15T18:36:09.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }