我目前正在使用PhoneGap开发应用程序。我的应用程序使用OpenID来验证用户。成功验证用户后,应该返回到我的应用程序。我使用location.href将页面重定向到本地地址(类似文件:///var/applications/.../index.html iOS应用程序)。但是,似乎PhoneGap不能从远程站点重定向本地页面。仅显示白色屏幕。
I am currently developing an application using PhoneGap. My application used OpenID to authenticate a user. After successfully authenticate a user, it should be return back to my application. I have used location.href to redirect the page to a local address (something like file:///var/applications/.../index.html for iOS app). However, it seems that PhoneGap cannot redirect a local page from remote site. Only a white screen was displayed. Is there any way for me to return back to my application after authentication?
感谢
推荐答案我想你可以使用childbrowser插件。 也可以使用自己的服务器上的网页,ajax调用openid登录的东西。
I think you can use the childbrowser plugin for that. Also you may be able to ajax call the openid login stuff using a webpage on your own server?
更多推荐
在PhoneGap平台上使用OpenID
发布评论