{"action":"created","issue":{"url":"https://api.github.com/repos/pinterest/ios-pdk/issues/93","repository_url":"https://api.github.com/repos/pinterest/ios-pdk","labels_url":"https://api.github.com/repos/pinterest/ios-pdk/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/pinterest/ios-pdk/issues/93/comments","events_url":"https://api.github.com/repos/pinterest/ios-pdk/issues/93/events","html_url":"https://github.com/pinterest/ios-pdk/issues/93","id":159067152,"number":93,"title":"SDK tries to authenticate by showing SFSafariViewController from view controller whose view is not in the view hierarchy","user":{"login":"inPhilly","id":1884802,"avatar_url":"https://avatars2.githubusercontent.com/u/1884802?v=4","gravatar_id":"","url":"https://api.github.com/users/inPhilly","html_url":"https://github.com/inPhilly","followers_url":"https://api.github.com/users/inPhilly/followers","following_url":"https://api.github.com/users/inPhilly/following{/other_user}","gists_url":"https://api.github.com/users/inPhilly/gists{/gist_id}","starred_url":"https://api.github.com/users/inPhilly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inPhilly/subscriptions","organizations_url":"https://api.github.com/users/inPhilly/orgs","repos_url":"https://api.github.com/users/inPhilly/repos","events_url":"https://api.github.com/users/inPhilly/events{/privacy}","received_events_url":"https://api.github.com/users/inPhilly/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-06-08T02:41:07Z","updated_at":"2018-03-16T23:34:54Z","closed_at":"2016-08-12T23:53:40Z","author_association":"NONE","body":"My rootViewController is a container controller, and my app does some 'fancy footwork' upon launch to get the correct controller in place.\n\nWhen I try to authenticate Pinterest from an established view controller, it must be trying to present the login controller from the rootViewController, whose view is not in the view hierarchy. Is there any way I can specify the UIViewController from which the SFSafariViewController should be presented? Please?\n\n`Warning: Attempt to present <SFSafariViewController: 0x7fc502c86b40> on <LaunchViewController: 0x7fc501720d20> whose view is not in the window hierarchy!`\n"},"comment":{"url":"https://api.github.com/repos/pinterest/ios-pdk/issues/comments/373872189","html_url":"https://github.com/pinterest/ios-pdk/issues/93#issuecomment-373872189","issue_url":"https://api.github.com/repos/pinterest/ios-pdk/issues/93","id":373872189,"user":{"login":"HiramKarim","id":16406266,"avatar_url":"https://avatars1.githubusercontent.com/u/16406266?v=4","gravatar_id":"","url":"https://api.github.com/users/HiramKarim","html_url":"https://github.com/HiramKarim","followers_url":"https://api.github.com/users/HiramKarim/followers","following_url":"https://api.github.com/users/HiramKarim/following{/other_user}","gists_url":"https://api.github.com/users/HiramKarim/gists{/gist_id}","starred_url":"https://api.github.com/users/HiramKarim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HiramKarim/subscriptions","organizations_url":"https://api.github.com/users/HiramKarim/orgs","repos_url":"https://api.github.com/users/HiramKarim/repos","events_url":"https://api.github.com/users/HiramKarim/events{/privacy}","received_events_url":"https://api.github.com/users/HiramKarim/received_events","type":"User","site_admin":false},"created_at":"2018-03-16T23:34:54Z","updated_at":"2018-03-16T23:34:54Z","author_association":"NONE","body":"Hi guys, after many attempts to authenticate using Pinterest SDK for iOS I decide to call the api methods to get the access token and the user information, I know, it should be using the SDK but the Pinterest team seems doesn’t have any interest to fix this issue on iOS. Try using the api calls using webviews With your keys and will work well...for now. \r\n\r\nRegards ~"}}
{"actor":{"display_login":"HiramKarim"}}