[Closed] Let's make Google Play plugin login possible (+Cro)

Post your work in progress addons and get feedback

Post » Fri Sep 26, 2014 7:13 pm

Closed

You can use official Google Play plugin in phonegap now.

Thanks for your interest.
Last edited by cranberrygame on Tue Oct 21, 2014 5:35 am, edited 20 times in total.
Construct2 Cordova Plugins (currently 87 plugins): https://www.scirra.com/store/construct2 ... ugins-1662

Construct2 Prototype Capx (currently 50 capx): https://www.scirra.com/store/games-with ... -capx-3088

Home page: http://cranberrygame.com
B
65
S
22
G
81
Posts: 780
Reputation: 46,631

Post » Fri Sep 26, 2014 7:27 pm

It would be a lot better just to figure out how to get the existing Google Play Game Services to run the login flow from a web view. AFAIK that's the only blocker.
Scirra Founder
B
402
S
238
G
89
Posts: 24,628
Reputation: 196,023

Post » Fri Sep 26, 2014 7:40 pm

@Ashley

I think it will much better too if you are willing to do so for us.

Following jquery let phonegap to login possible (Google play login works in jquery 2.1.0, I tested)

See: https://github.com/krisrak/jquery-cordova-oauth2

Sent you email with attached file (phonegap google play game login example)

Edit: renamed this post's title from "[Plugin] Let's make Google Play Game plugin" to "[Plugin] Let's make Google Play plugin login possible"
Thanks
Construct2 Cordova Plugins (currently 87 plugins): https://www.scirra.com/store/construct2 ... ugins-1662

Construct2 Prototype Capx (currently 50 capx): https://www.scirra.com/store/games-with ... -capx-3088

Home page: http://cranberrygame.com
B
65
S
22
G
81
Posts: 780
Reputation: 46,631

Post » Wed Oct 01, 2014 3:29 pm

@cranberrygame

I have just tried using the google play plugin, I do have a problem however.

On my Android phone, my game loads up and asks me to login to google, I enter the username and password, it then displays the list of things to agree to.

When I click on agree, A black message box is displayed which says
Application Error
The server refused the connection. (http://Some really long link)

I wonder whether you have any ideas about what is going wrong here? (It has been built using Crosswalk)
B
5
S
1
Posts: 9
Reputation: 470

Post » Wed Oct 01, 2014 4:29 pm

@MarkShires

Google Play works.

Let's this work completely.

I need your help.

You need install In App Browser plugin as follows.

In App Browser plugin is required

Code: Select all
XDK PORJECTS - your_xdk_project - CORDOVA 3.X HYBRID MOBILE APP SETTINGS - PLUGINS AND PERMISSIONS - Core Cordova Plugins -

set "In App Browser" checked state, set version 0.2.4
Construct2 Cordova Plugins (currently 87 plugins): https://www.scirra.com/store/construct2 ... ugins-1662

Construct2 Prototype Capx (currently 50 capx): https://www.scirra.com/store/games-with ... -capx-3088

Home page: http://cranberrygame.com
B
65
S
22
G
81
Posts: 780
Reputation: 46,631

Post » Thu Oct 02, 2014 3:26 pm

@Cranberrygame

Thanks for the tip, I have installed the In App Browser plugin. Which seems to have got me past the original issue. Now after logging in and agreeing to the permissions, I am presented with
Web Page not available
The web page at http://localhost/......... etc might be temporarily down or it may have moved to a new address

Do you know why this is?
B
5
S
1
Posts: 9
Reputation: 470

Post » Thu Oct 02, 2014 3:58 pm

@MarkShires

Also do this:

edit REDIRECT URIS to http://localhost

Code: Select all
google play developer console - Game service - Linked apps - [web app] - click API console link - REDIRECT URIS: http://localhost
Construct2 Cordova Plugins (currently 87 plugins): https://www.scirra.com/store/construct2 ... ugins-1662

Construct2 Prototype Capx (currently 50 capx): https://www.scirra.com/store/games-with ... -capx-3088

Home page: http://cranberrygame.com
B
65
S
22
G
81
Posts: 780
Reputation: 46,631

Post » Thu Oct 02, 2014 4:25 pm

@cranberrygame

Do I have to put the whole address that is displayed or just http://localhost just the local host is not working it is still doing the same.
B
5
S
1
Posts: 9
Reputation: 470

Post » Thu Oct 02, 2014 4:42 pm

@MarkShires

edit REDIRECT URIS in google play developer console to http://localhost as follows

edit REDIRECT URIS in google play developer console to http://localhost

Code: Select all
google play developer console - Game service - Linked apps - [web app] - click API console link - REDIRECT URIS: http://localhost
Construct2 Cordova Plugins (currently 87 plugins): https://www.scirra.com/store/construct2 ... ugins-1662

Construct2 Prototype Capx (currently 50 capx): https://www.scirra.com/store/games-with ... -capx-3088

Home page: http://cranberrygame.com
B
65
S
22
G
81
Posts: 780
Reputation: 46,631

Post » Fri Oct 03, 2014 9:17 am

@cranberrygame

I'm still having no joy with getting it to work. I'm still getting the Wep page not available message after logging in.
B
5
S
1
Posts: 9
Reputation: 470

Next

Return to Work in Progress Addons

Who is online

Users browsing this forum: No registered users and 0 guests