我正在开发一个 ios 应用程序并尝试允许用户连接到他们的 LinkedIn 帐户。
我正在使用 https://developer.linkedin.com/docs/ios-sdk-auth 中的步骤
- 在 LinkedIn 上注册了我的应用程序以获取应用程序 ID。
- 用URL Schemes
info.plist
的条目更新了我的*li{application id}*
- 调用
LISDKSessionManager.createSessionWithAuth()
以启动登录过程。
但是,这只会在我的 iPad 上打开 LinkedIn 应用程序,但不会显示我请求了哪些权限,也不会将我重定向回我的应用程序。我不知道这是预期的行为还是我错过了一步。
请注意,linkedin 提供的示例应用程序也不会向我显示请求权限列表的页面或将我重定向回我自己的应用程序。