-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Can we force OAuth2 login even when the LinkedIn app is installed? #18
Comments
I also noticed that official SDK doesnt call the callbacks on both success and error. |
@Dev-iL, My temporary solution is to remove all LSApplicationQueriesSchemes from Info.plist so that your app thinks that LinkedIn app is not installed. |
You can override NativeAppInstalledChecker's isLinkedinAppInstalled function, make it always return false, then pass it into LinkedinSwiftHelper. |
@joonhocho I came to share my own "solution" (which I found several days after posting the issue), only to realize that it's identical to yours. I arrived at this workaround after trial and error, so I had no idea why/how it worked... Until now :) Thanks for the explanation! |
@tonyli508 How can we set isLinkedInAppInstalled false? |
@vaibhav-varshaaweblabs subclass NativeAppInstalledChecker's override isLinkedInAppInstalled |
Hello!
As the title says - I'm wondering if there's a simple way to force OAuth2 despite having the LinkedIn app available. The reason I want to do this is because following the official guides resulted in control not coming back to my app after the LinkedIn login was complete (it just stays inside the LI app; with and without this library). However, when the LI app is removed, the OAuth2 fallback flow works flawlessly.
Thank you for this library!
The text was updated successfully, but these errors were encountered: