来自网址不允许我进一步在cordova应用程序谷歌认证后 [英] Coming url doesn't let me go further in cordova app after google authentication

查看:1084
本文介绍了来自网址不允许我进一步在cordova应用程序谷歌认证后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我使用Visual Studio 2015社区中使用Cordova应用程序,只需使用谷歌身份验证登录应用程序,这是非常好的登录是通过在新窗口中打开它,但登录后它给我三个弹出消息,



这些消息是(在登录过程之后发出并允许许可):


1)gap_init:2



2)gap:[null,CoreAndroid,messageChannel,CoreAndroid237153815]



3)gap:[null,CoreAndroid,show,CoreAndroid237153816]


通过按下这些消息为确定,它只是显示我的第一页在同一个弹出窗口从我登录使用谷歌和登录后返回的URL是:



http:// localhost:4400 /?code = 4 / chL63O9SMzMFZGOlqcB9TFMVUFxWj0E4GYEuVFDQ3gM#。 / p>

我在console.developers.google.com中配置的网址设置为:


授权的JavaScript起始地址= http:// localhost:4400



授权redirect URIs = http:// localhost:4400


并且当我在redirect_uri中调用api时,我通过localhost:// 4400



我应该在登录后进入第二页并给予允许权限,即index2.html,但在窗口弹出后不会发生此类进程。



在移动设备上打开浏览器,但不返回应用程序进一步处理在允许处理完成之后停留在那里并且找到即将到来的URL



http:// localhost:4400 /?code = 4 / chL63O9SMzMFZGOlqcB9TFMVUFxWj0E4GYEuVFDQ3gM#



我在哪里做错建议我尽快地。谢谢

解决方案

如果将cordova.php重新命名后在根尝试重新载入


Hello I am using Cordova app using Visual Studio 2015 community and simply login in the app using google authentication it's pretty fine login is done by open it in new window but after login it gives me the three pop up messages and than don't do anything.

The messages are (which are coming after login process and gives allow permission):

1) gap_init:2

2) gap:[null,"CoreAndroid","messageChannel","CoreAndroid237153815"]

3) gap:[null,"CoreAndroid","show","CoreAndroid237153816"]

by pressing these messages as "OK" it's just showing me my first page in the same popup window from where I logged in using Google and returned url after login is:

http://localhost:4400/?code=4/chL63O9SMzMFZGOlqcB9TFMVUFxWj0E4GYEuVFDQ3gM#.

My configured url settings in console.developers.google.com are:

Authorized JavaScript origins = http://localhost:4400

Authorized redirect URIs = http://localhost:4400

and when I am calling the api in that in redirect_uri I pass localhost://4400

I am supposed to go on the second page after login and give allow permission i.e. index2.html but no such process takes place after window gets popped up.

In mobile it open's the browser but don't come back to application for further process staying there after allow process done and finding the coming url i.e.

http://localhost:4400/?code=4/chL63O9SMzMFZGOlqcB9TFMVUFxWj0E4GYEuVFDQ3gM#.

Where am I doing wrong please suggest me anyone as soon as possible. Thank you

解决方案

IF you have placed cordova.php in root try reload after renaming it

这篇关于来自网址不允许我进一步在cordova应用程序谷歌认证后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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