iPhone 基础 sdk 和 FBConnect
我注意到,当我将基本 sdk 设置为 3.2 时,即使我每次在应用程序之间切换时在 4.+ ios 设备上运行该应用程序,该应用程序也会重新启动。当 bask sdk 为 4.+ 时,它会从原来的位置恢复。 我面临的问题是新的 fbconnect 使用应用程序切换进行身份验证。如果基本 sdk 是 3.2 ,它会切换到 FB 应用程序或 safari,然后重新启动我的应用程序,我似乎没有得到它的 url通过,所以我可以注册身份验证。正如我所说,使用 4.+ 基础,应用程序可以正确恢复并进行身份验证。 我想我在这里弄乱了一些东西。 谢谢
I have noticed that when i set base sdk to 3.2 even when i run the app on a 4.+ ios device every time you switch between apps ,the app restarts .When bask sdk is 4.+ resumes from where it was left.
The issue i'm facing is with the new fbconnect which uses app switching for the authentication.If the base sdk is 3.2 ,it switches to either the FB app or safari and then restarts my app and i dont seem to get the url that it passes so i can register the authentication.With a 4.+ base as i said the app resumes correctly and authenticates.
I guess i'm messing something here.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该文档指出:
无论如何,您应该始终使用最新的 SDK(从 Xcode 3.2.5 开始,您最终可以将其指定为“最新 iOS”,而不必在每次新 SDK 出现时都更新您的项目)并设置如果您想支持早期版本的操作系统,则 iOS 部署目标较低。
最新 FB Connect 附带的 DemoApp 将基础 SDK 设置为最新,并将部署目标设置为 iOS 3.0。作为测试,我构建了它并将其安装到 3.1.3 设备上。单击第一个屏幕上的“登录”按钮后,老式登录框直接出现在我的应用程序中。我在 4.2.1 设备上安装了相同的应用程序,但登录按钮却将我带到了浏览器。
因此,我不确定您的项目到底发生了什么,但您可能应该正确设置基本 SDK 和部署目标,然后与提供的 DemoApp 进行比较(如果情况仍然无法正常工作)。
The documentation states that:
And in any case, you should always be using the latest SDK (which, as of Xcode 3.2.5 you can finally specify just as "Latest iOS" rather than having to update your projects every time a new SDK comes out) and setting the iOS Deployment Target lower if you want to support earlier versions of the OS.
The DemoApp that comes with the latest FB Connect has the base SDK set to latest and the deployment target set to iOS 3.0. As a test, I built that and installed it onto a 3.1.3 device. Upon clicking the 'login' button on the first screen the old fashioned login box appeared directly in my app. I installed the same app onto a 4.2.1 device and the login button instead took me to the browser.
So I'm not sure exactly what's going on in your project, but you should probably set the base SDK and deployment target correctly, then compare to the supplied DemoApp if things still seem not to be working.