简体   繁体   English

iPhone Base SDK和FBConnect

[英]iphone base sdk and FBConnect

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. 我注意到,即使我每次在4 ++ ios设备上运行该应用程序时,将基本sdk设置为3.2时,该应用程序也会重新启动。当bad sdk为4. +时,将从其保留的位置恢复。 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. 我面临的问题是使用应用程序切换进行身份验证的新fbconnect。如果基本sdk是3.2,它将切换到FB应用程序或野生动物园,然后重新启动我的应用程序,但我似乎没有得到它的网址通过,这样我就可以注册身份验证了。我说的4. +基础应用可以正确恢复并进行身份验证。 I guess i'm messing something here. 我想我在这里乱搞一些东西。 Thanks 谢谢

The documentation states that: 文件指出:

Single sign-on is available for apps built on version of iOS that support multitasking (generall v4.0 and higher--see Apple documentation for more information). 单一登录适用于基于iOS版本的应用程序,该应用程序支持多任务处理(generall v4.0及更高版本-有关更多信息,请参阅Apple文档)。 Others applications will fall back to inline dialog-based authorization. 其他应用程序将回退到基于对话框的内联授权。

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. 在任何情况下,您应该始终使用最新的SDK(从Xcode 3.2.5开始,您最终可以指定为“最新iOS”,而不是每次新SDK发布时都必须更新项目)并设置如果您想支持早期版本的OS,请降低iOS部署目标。

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. 最新FB Connect附带的DemoApp将基本SDK设置为最新,将部署目标设置为iOS 3.0。 As a test, I built that and installed it onto a 3.1.3 device. 作为测试,我构建了该程序并将其安装到3.1.3设备上。 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. 我在4.2.1设备上安装了相同的应用程序,然后使用登录按钮将我带到浏览器。

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. 所以我不确定你的项目到底发生了什么,但你应该正确地设置基本SDK和部署目标,然后比较提供的DemoApp,如果事情似乎仍然无法正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM