{"action":"created","issue":{"url":"https://api.github.com/repos/fastlane/snapshot/issues/418","repository_url":"https://api.github.com/repos/fastlane/snapshot","labels_url":"https://api.github.com/repos/fastlane/snapshot/issues/418/labels{/name}","comments_url":"https://api.github.com/repos/fastlane/snapshot/issues/418/comments","events_url":"https://api.github.com/repos/fastlane/snapshot/issues/418/events","html_url":"https://github.com/fastlane/snapshot/issues/418","id":130768723,"number":418,"title":"UITests failing because of push notification popup","user":{"login":"ilandbt","id":2613779,"avatar_url":"https://avatars.githubusercontent.com/u/2613779?v=3","gravatar_id":"","url":"https://api.github.com/users/ilandbt","html_url":"https://github.com/ilandbt","followers_url":"https://api.github.com/users/ilandbt/followers","following_url":"https://api.github.com/users/ilandbt/following{/other_user}","gists_url":"https://api.github.com/users/ilandbt/gists{/gist_id}","starred_url":"https://api.github.com/users/ilandbt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilandbt/subscriptions","organizations_url":"https://api.github.com/users/ilandbt/orgs","repos_url":"https://api.github.com/users/ilandbt/repos","events_url":"https://api.github.com/users/ilandbt/events{/privacy}","received_events_url":"https://api.github.com/users/ilandbt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"ohwutup","id":2587018,"avatar_url":"https://avatars.githubusercontent.com/u/2587018?v=3","gravatar_id":"","url":"https://api.github.com/users/ohwutup","html_url":"https://github.com/ohwutup","followers_url":"https://api.github.com/users/ohwutup/followers","following_url":"https://api.github.com/users/ohwutup/following{/other_user}","gists_url":"https://api.github.com/users/ohwutup/gists{/gist_id}","starred_url":"https://api.github.com/users/ohwutup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohwutup/subscriptions","organizations_url":"https://api.github.com/users/ohwutup/orgs","repos_url":"https://api.github.com/users/ohwutup/repos","events_url":"https://api.github.com/users/ohwutup/events{/privacy}","received_events_url":"https://api.github.com/users/ohwutup/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2016-02-02T18:16:39Z","updated_at":"2016-02-17T16:24:59Z","closed_at":null,"body":"Hi,\r\nMy UITests are failing so i cant get any screenshots.\r\nIts failing because of the push notification popup.\r\n\r\nI tried disabling the registration with the \"FASTLANE_SNAPSHOT\" flag but its not working (the popup is still popping).\r\n``` Swift\r\n        if !NSUserDefaults.standardUserDefaults().boolForKey(\"FASTLANE_SNAPSHOT\") {\r\n            // runtime check that we are in snapshot mode\r\n            \r\n            let type: UIUserNotificationType = [UIUserNotificationType.Badge, UIUserNotificationType.Alert, UIUserNotificationType.Sound];\r\n            let setting = UIUserNotificationSettings(forTypes: type, categories: nil);\r\n            UIApplication.sharedApplication().registerUserNotificationSettings(setting);\r\n            UIApplication.sharedApplication().registerForRemoteNotifications();\r\n        }\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/fastlane/snapshot/issues/comments/185282039","html_url":"https://github.com/fastlane/snapshot/issues/418#issuecomment-185282039","issue_url":"https://api.github.com/repos/fastlane/snapshot/issues/418","id":185282039,"user":{"login":"ahknight","id":101272,"avatar_url":"https://avatars.githubusercontent.com/u/101272?v=3","gravatar_id":"","url":"https://api.github.com/users/ahknight","html_url":"https://github.com/ahknight","followers_url":"https://api.github.com/users/ahknight/followers","following_url":"https://api.github.com/users/ahknight/following{/other_user}","gists_url":"https://api.github.com/users/ahknight/gists{/gist_id}","starred_url":"https://api.github.com/users/ahknight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahknight/subscriptions","organizations_url":"https://api.github.com/users/ahknight/orgs","repos_url":"https://api.github.com/users/ahknight/repos","events_url":"https://api.github.com/users/ahknight/events{/privacy}","received_events_url":"https://api.github.com/users/ahknight/received_events","type":"User","site_admin":false},"created_at":"2016-02-17T16:24:59Z","updated_at":"2016-02-17T16:24:59Z","body":"That's probably a better idea, as long as you're not automating devices as well (that is, snapshot is outside your normal UI tests)."}}