I have a problem integrating LinkedIn sdk with my iOS app. It seems that the authentication process requires that I download the LinkedIn app to connect with LinkedIn. Is there a way to use the sdk without having to download the LinkedIn app? Apple rejects the app for that reason. I'd greatly appreciate any hints to work around this issue. Thanks in advance
相关问题
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- gactions CLI crashes on Windows when uploading goo
- “Zero out” sensitive String data in Swift
相关文章
- 现在使用swift开发ios应用好还是swift?
- Windows - Android SDK manager not listing any plat
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Swift - hide pickerView after value selected
- How do you detect key up / key down events from a
- didBeginContact:(SKPhysicsContact *)contact not in
Here is demo in that LinkedIn authentication work inside app
A really good blog post on integrating OAuth2 login to linkedin from a native ios app can be found here: http://www.oodlestechnologies.com/blogs/Linkedin-Integration-in-Native-iOS It's a little dated but I hope this helps.
Try LIExplorer library for linkedin authentication and REST API. Its easy to use. https://github.com/vijayviswas/LIExplorer
Complete working code whether LinkedIn App install or not.
If you are using cocoapod in your project than use -
Inside your ViewController.h add these Headers files.
Inside Your ViewController.m
Add the above URL in your Linkedin App setting Page.
Authorized Redirect URLs: http://linkedin_oauth/success
I hope it helps for you guys.
On the LinkedIn iOS SDK website, it says that it requires the user to already have the official LinkedIn app installed. You may be able to use embed a UIWebView into your app and use the OAuth2 authentication flow to authenticate the user and get the authorization token necessary. You could also use canOpenURL to check if the user has the LinkedIn app (iOS 9 has changed how this works a little apparently) and prompt them to install the app. Best of luck,
The other answers on this page that are dated the 6th of November 2015, each refer to processes prior to iOS9 and their latest SDKs.
With their latest version, it is a "requirement" that the mobile application be installed for the single sign on process to work. Workflow being:
In as far as the iOS application is concerned, this is the "required" way to utilise SSO. However, there is a slight workaround in sharing the authorisation token between the mobile and non-mobile versions of the app.
I have shared this in answers to:
https://stackoverflow.com/a/34312931/1804181 and
https://stackoverflow.com/a/34451266/1804181
and the OP of the first answer has successfully implemented this solution.
Simply put:
Test for the presence of the linked-in app:
Thereby avoiding the REQUIREMENT to have the app installed, but utilising it if it is.