{"action":"created","issue":{"url":"https://api.github.com/repos/tonyli508/LinkedinSwift/issues/39","repository_url":"https://api.github.com/repos/tonyli508/LinkedinSwift","labels_url":"https://api.github.com/repos/tonyli508/LinkedinSwift/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/tonyli508/LinkedinSwift/issues/39/comments","events_url":"https://api.github.com/repos/tonyli508/LinkedinSwift/issues/39/events","html_url":"https://github.com/tonyli508/LinkedinSwift/issues/39","id":308137409,"number":39,"title":"How to use NativeAppInstalledChecker","user":{"login":"Isuru-Nanayakkara","id":2551877,"avatar_url":"https://avatars0.githubusercontent.com/u/2551877?v=4","gravatar_id":"","url":"https://api.github.com/users/Isuru-Nanayakkara","html_url":"https://github.com/Isuru-Nanayakkara","followers_url":"https://api.github.com/users/Isuru-Nanayakkara/followers","following_url":"https://api.github.com/users/Isuru-Nanayakkara/following{/other_user}","gists_url":"https://api.github.com/users/Isuru-Nanayakkara/gists{/gist_id}","starred_url":"https://api.github.com/users/Isuru-Nanayakkara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Isuru-Nanayakkara/subscriptions","organizations_url":"https://api.github.com/users/Isuru-Nanayakkara/orgs","repos_url":"https://api.github.com/users/Isuru-Nanayakkara/repos","events_url":"https://api.github.com/users/Isuru-Nanayakkara/events{/privacy}","received_events_url":"https://api.github.com/users/Isuru-Nanayakkara/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-23T18:33:02Z","updated_at":"2018-03-25T12:51:46Z","closed_at":null,"author_association":"NONE","body":"The `LinkedinSwiftConfiguration` initializer has a parameter called `nativeAppChecker` but I can't figure out how or what to use it for. The docs or the example project is missing it too.\r\n\r\nI need to check if the native app is installed on the device and if not, direct the user to the App Store to install the app.\r\n\r\nIs it possible to do that with the `NativeAppInstalledChecker` and this `nativeAppChecker` parameter?"},"comment":{"url":"https://api.github.com/repos/tonyli508/LinkedinSwift/issues/comments/375968259","html_url":"https://github.com/tonyli508/LinkedinSwift/issues/39#issuecomment-375968259","issue_url":"https://api.github.com/repos/tonyli508/LinkedinSwift/issues/39","id":375968259,"user":{"login":"Isuru-Nanayakkara","id":2551877,"avatar_url":"https://avatars0.githubusercontent.com/u/2551877?v=4","gravatar_id":"","url":"https://api.github.com/users/Isuru-Nanayakkara","html_url":"https://github.com/Isuru-Nanayakkara","followers_url":"https://api.github.com/users/Isuru-Nanayakkara/followers","following_url":"https://api.github.com/users/Isuru-Nanayakkara/following{/other_user}","gists_url":"https://api.github.com/users/Isuru-Nanayakkara/gists{/gist_id}","starred_url":"https://api.github.com/users/Isuru-Nanayakkara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Isuru-Nanayakkara/subscriptions","organizations_url":"https://api.github.com/users/Isuru-Nanayakkara/orgs","repos_url":"https://api.github.com/users/Isuru-Nanayakkara/repos","events_url":"https://api.github.com/users/Isuru-Nanayakkara/events{/privacy}","received_events_url":"https://api.github.com/users/Isuru-Nanayakkara/received_events","type":"User","site_admin":false},"created_at":"2018-03-25T12:51:46Z","updated_at":"2018-03-25T12:51:46Z","author_association":"NONE","body":"This is how I'm currently doing it.\r\n\r\n```swift\r\nif LinkedinSwiftHelper.isLinkedinAppInstalled() {\r\n    let linkedinHelper = LinkedinSwiftHelper(configuration: LinkedinSwiftConfiguration(clientId: \"815dicnsjdkd\", clientSecret: \"RUFN354jkoiR\", state: \"A4RF32ifjskdmckld\", permissions: [\"r_basicprofile\", \"r_emailaddress\"], redirectUrl: \"https://example.com/signin-linkedin\"), nativeAppChecker: nil, clients: nil, webOAuthPresent: self, persistedLSToken: nil)\r\n    linkedinHelper.authorizeSuccess({ token in\r\n        print(\"Successfully authorized via Linkedin\")\r\n    }, error: { error in\r\n        print(\"Failed to authorize via Linkedin: \\(error)\")\r\n    }) {\r\n        print(\"User cancelled authorizing via Linkedin\")\r\n    }\r\n}\r\n```\r\n\r\nSo what's the use of the `nativeAppChecker` parameter? How do I use it? "}}
{"actor":{"display_login":"Isuru-Nanayakkara"}}