{
"id": "152584",
"key": "TIMOB-19844",
"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": [],
"resolution": null,
"resolutiondate": null,
"created": "2015-11-02T15:31:23.000+0000",
"priority": {
"name": "None",
"id": "6"
},
"labels": [],
"versions": [
{
"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"
}
],
"issuelinks": [
{
"id": "49761",
"type": {
"id": "10011",
"name": "Includes",
"inward": "is included by",
"outward": "includes"
},
"inwardIssue": {
"id": "153010",
"key": "TIMOB-19933",
"fields": {
"summary": "Android: Required uses-permission are not always added to AndroidManifest",
"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": "None",
"id": "6"
},
"issuetype": {
"id": "1",
"description": "A problem which impairs or prevents the functions of the product.",
"name": "Bug",
"subtask": false
}
}
}
},
{
"id": "49601",
"type": {
"id": "10003",
"name": "Relates",
"inward": "relates to",
"outward": "relates to"
},
"inwardIssue": {
"id": "152585",
"key": "TIDOC-2349",
"fields": {
"summary": "Android: Permissions (Calendar) Both permissions required in tiapp.xml",
"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": "High",
"id": "2"
},
"issuetype": {
"id": "1",
"description": "A problem which impairs or prevents the functions of the product.",
"name": "Bug",
"subtask": false
}
}
}
},
{
"id": "49603",
"type": {
"id": "10003",
"name": "Relates",
"inward": "relates to",
"outward": "relates to"
},
"inwardIssue": {
"id": "87647",
"key": "TIMOB-7949",
"fields": {
"summary": "Android: Calendar - automatically add necessary permissions to tiapp.xml",
"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": "Low",
"id": "4"
},
"issuetype": {
"id": "2",
"description": "A new feature of the product, which has yet to be developed.",
"name": "New Feature",
"subtask": false
}
}
}
}
],
"assignee": null,
"updated": "2018-02-28T19:55:48.000+0000",
"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"
}
},
"components": [
{
"id": "10202",
"name": "Android",
"description": "Android Platform"
}
],
"description": "Until TIMOB-7949 is resolved you have to manually add this to your tiapp.xml:\r\n\r\n{code:xml}\r\n \r\n \r\n{code}\r\n\r\nBut if either is missing (e.g. because you don't need WRITE) weird stuff happens:\r\n\r\n1. {{Ti.Calendar.hasCalendarPermissions()}} will always be {{false}}\r\n2. {{Ti.Calendar.requestCalendarPermissions}} will always show the dialog and if you grant permissions call back with {{success:true}}.\r\n\r\nI'd assume {{Ti.Calendar.requestCalendarPermissions}} to always call back with {{success:false}} - as it does when you don't have either {{user-permission}} in place.\r\n\r\nI think the best approach is to resolve TIMOB-7949 and with that this one as well.",
"attachment": [],
"flagged": false,
"summary": "Android: If either uses-permission is missing hasCalendarPermissions will always be false but requestCalendarPermissions returns success",
"creator": {
"name": "fokkezb",
"key": "fokke",
"displayName": "Fokke Zandbergen",
"active": true,
"timeZone": "Europe/Amsterdam"
},
"subtasks": [],
"reporter": {
"name": "fokkezb",
"key": "fokke",
"displayName": "Fokke Zandbergen",
"active": true,
"timeZone": "Europe/Amsterdam"
},
"environment": "SDK 5.1.0.v20151028190028",
"comment": {
"comments": [
{
"id": "370056",
"author": {
"name": "fokkezb",
"key": "fokke",
"displayName": "Fokke Zandbergen",
"active": true,
"timeZone": "Europe/Amsterdam"
},
"body": "Will be fixed with TIMOB-19933",
"updateAuthor": {
"name": "fokkezb",
"key": "fokke",
"displayName": "Fokke Zandbergen",
"active": true,
"timeZone": "Europe/Amsterdam"
},
"created": "2015-11-12T08:29:31.000+0000",
"updated": "2015-11-12T08:29:31.000+0000"
}
],
"maxResults": 1,
"total": 1,
"startAt": 0
}
}
}