1

我正在开发一个 ios 应用程序并尝试允许用户连接到他们的 LinkedIn 帐户。

我正在使用 https://developer.linkedin.com/docs/ios-sdk-auth 中的步骤

  1. 在 LinkedIn 上注册了我的应用程序以获取应用程序 ID。
  2. 用URL Schemesinfo.plist的条目更新了我的*li{application id}*
  3. 调用LISDKSessionManager.createSessionWithAuth()以启动登录过程。

但是,这只会在我的 iPad 上打开 LinkedIn 应用程序,但不会显示我请求了哪些权限,也不会将我重定向回我的应用程序。我不知道这是预期的行为还是我错过了一步。

请注意,linkedin 提供的示例应用程序也不会向我显示请求权限列表的页面或将我重定向回我自己的应用程序。

4

2 回答 2

1

LinkedIn 应用程序似乎有一个 iPad 特定的错误createSessionWithAuth:,即使所有凭据都正确,它也会在调用后阻止它返回到其他应用程序。

(我不得不等待物理 iPhone 的交付来检验我的假设,因为在模拟器上无法像这样登录)。


更新

我的回答是关于 1.0.2 sdk,它在所有iOS 9 设备上也存在问题。1.0.4 sdk 修复了 iOS 9 的问题,但 iPad 的问题仍然存在。

于 2015-08-27T15:02:03.587 回答
0

Found the solution. For me, it was about setting our bundles right:

On https://www.linkedin.com/developer/apps/xxxxxx/mobile, make sure that your 'iOS Bundle Identifiers' is the same on your app. Plus, click on Update! I just added and 'forgot' to save them.

于 2015-08-19T18:10:33.833 回答