问题
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
回答1:
IF you have placed cordova.php in root try reload after renaming it
来源:https://stackoverflow.com/questions/34135466/coming-url-doesnt-let-me-go-further-in-cordova-app-after-google-authentication