{"action":"created","issue":{"url":"https://api.github.com/repos/jlaws/JLPermissions/issues/19","labels_url":"https://api.github.com/repos/jlaws/JLPermissions/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/jlaws/JLPermissions/issues/19/comments","events_url":"https://api.github.com/repos/jlaws/JLPermissions/issues/19/events","html_url":"https://github.com/jlaws/JLPermissions/issues/19","id":69171980,"number":19,"title":"UIUserNotificationSettings permissions only","user":{"login":"jyounus","id":1123124,"avatar_url":"https://avatars.githubusercontent.com/u/1123124?v=3","gravatar_id":"","url":"https://api.github.com/users/jyounus","html_url":"https://github.com/jyounus","followers_url":"https://api.github.com/users/jyounus/followers","following_url":"https://api.github.com/users/jyounus/following{/other_user}","gists_url":"https://api.github.com/users/jyounus/gists{/gist_id}","starred_url":"https://api.github.com/users/jyounus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jyounus/subscriptions","organizations_url":"https://api.github.com/users/jyounus/orgs","repos_url":"https://api.github.com/users/jyounus/repos","events_url":"https://api.github.com/users/jyounus/events{/privacy}","received_events_url":"https://api.github.com/users/jyounus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-17T16:30:21Z","updated_at":"2015-04-17T17:45:38Z","closed_at":null,"body":"Hey there,\r\n\r\nI'm trying to get this to work with UIUserNotificationSettings permissions only (I don't want/need remote notifications, just local ones). I'm using Swift, this is what I'm doing:\r\n\r\n    JLNotificationPermission.sharedInstance().remoteNotificationType = UIRemoteNotificationType.None\r\n    JLNotificationPermission.sharedInstance().userNotificationSettings = UIUserNotificationSettings(forTypes: UIUserNotificationType.Sound | UIUserNotificationType.Alert, categories: nil)\r\n\r\nAfter that I call the authorizeWithTitle() method. If I don't allow the permission, I get the expected behaviour. But as soon as I allow system permissions, I don't get anything printed. When I check for the authorizationStatus(), it is set to JLPermissionDenied.\r\n\r\nAny ideas what possibly needs changing?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jlaws/JLPermissions/issues/comments/94036894","html_url":"https://github.com/jlaws/JLPermissions/issues/19#issuecomment-94036894","issue_url":"https://api.github.com/repos/jlaws/JLPermissions/issues/19","id":94036894,"user":{"login":"jlaws","id":1224112,"avatar_url":"https://avatars.githubusercontent.com/u/1224112?v=3","gravatar_id":"","url":"https://api.github.com/users/jlaws","html_url":"https://github.com/jlaws","followers_url":"https://api.github.com/users/jlaws/followers","following_url":"https://api.github.com/users/jlaws/following{/other_user}","gists_url":"https://api.github.com/users/jlaws/gists{/gist_id}","starred_url":"https://api.github.com/users/jlaws/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlaws/subscriptions","organizations_url":"https://api.github.com/users/jlaws/orgs","repos_url":"https://api.github.com/users/jlaws/repos","events_url":"https://api.github.com/users/jlaws/events{/privacy}","received_events_url":"https://api.github.com/users/jlaws/received_events","type":"User","site_admin":false},"created_at":"2015-04-17T17:45:38Z","updated_at":"2015-04-17T17:45:38Z","body":"great! glad you got it working, send that PR when you get a chance\n\nOn Fri, Apr 17, 2015 at 1:44 PM, Junaid Younus <notifications@github.com>\nwrote:\n\n> I haven't tested on device, only simulator. For local notifications, the\n> simulator works fine.\n> I've fixed the issue. Required some changes to the\n> JLNotificationPermission file. It's not the most elegant solution, but it\n> works if you only require local notifications. I will submit a pull request\n> sometime later on today or tomorrow.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/jlaws/JLPermissions/issues/19#issuecomment-94036496>.\n>\n"}}