{ "id": "174539", "key": "TIMOB-27652", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2021-01-19T20:30:07.000+0000", "created": "2019-12-12T14:16:58.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "griffin-app" ], "versions": [], "issuelinks": [], "assignee": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "updated": "2021-01-19T20:30:07.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": "Currently, there is no way to check to see if a user has already accepted or rejected the permission for local notifications.\r\n\r\nThis causes several issues such as the ability to prompt an onboarding screen before asking for permissions and the ability to see that they have rejected permissions and onboard them on how to change it in settings.\r\n\r\nThere exists similar functions for other permissions:\r\n\r\nhasAudioRecorderPermissions()\r\nhasCameraPermissions( ) \r\nhasMusicLibraryPermissions( ) \r\nhasPhotoGalleryPermissions( ) \r\n\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "Add functions to check if user has accepted permission for local notifications", "creator": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "458038", "author": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "body": "[~cwilliams] - Do you know if this is the Apple function that we would need to use to support this? https://developer.apple.com/documentation/usernotifications/unusernotificationcenter/1649524-getnotificationsettings\r\n", "updateAuthor": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "created": "2021-01-19T17:17:24.000+0000", "updated": "2021-01-19T17:17:24.000+0000" }, { "id": "458043", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~bhouse] You can use https://titaniumsdk.com/api/titanium/app/ios/usernotificationcenter.html#requestusernotificationsettings and check for https://titaniumsdk.com/api/structs/getusernotificationsettings.html#authorizationstatus to get the permission.\r\n ", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-01-19T20:17:55.000+0000", "updated": "2021-01-19T20:17:55.000+0000" }, { "id": "458044", "author": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "body": "Thank you [~vijaysingh]! Works like a charm!", "updateAuthor": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "created": "2021-01-19T20:26:28.000+0000", "updated": "2021-01-19T20:26:28.000+0000" }, { "id": "458045", "author": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "body": "This issue is being closed because there is a way to get this information using another function in the SDK.", "updateAuthor": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "created": "2021-01-19T20:30:07.000+0000", "updated": "2021-01-19T20:30:07.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }