如何集成google加Oauth API在Phonegap的Android应用程序 [英] How to integrate google plus Oauth API in Phonegap for android app

查看:185
本文介绍了如何集成google加Oauth API在Phonegap的Android应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用google plus验证我的Phonegap Android应用程式。我使用了Oauth Google API。我使用客户端ID和客户端秘密从谷歌加Oauth API,但我不知道什么要写在重定向URI。在重定向URI中写什么?我已使用此 http://phonegap-tips.com /articles/google-api-oauth-with-phonegaps-inappbrowser.html 来制作我的Phonegap应用程式。

I want to do authentication of my Phonegap Android application using google plus. I have used Oauth Google API. I have used client ID and client secret from google plus Oauth API but i don't know what to write in Redirection URI. What to write in Redirection URI ? i have used this http://phonegap-tips.com/articles/google-api-oauth-with-phonegaps-inappbrowser.html for making my Phonegap app.

推荐答案

nice question
i也有同样的问题
,并通过

nice question i had also same issue and resolved it by

使用 localhost 作为重定向uri来解决。
我希望能帮助你。

use "localhost" as Redirection uri. i hope helps you.

这篇关于如何集成google加Oauth API在Phonegap的Android应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆