How do I get the Google Play plugin to automatically sign in

Get help using Construct 2

Post » Mon Nov 21, 2016 7:07 am

I would like the Google Play plugin to sign in my users automatically on the first time going into the app. I know this is possible because it works in other apps. I will install them for the first time on my phone and instantly be logged in via Google Play Games while seeing the below:
Image

I was just wondering if this is possible through the official Google Play plugin or by other means?

Any help or advice is much appreciated!
B
14
S
4
G
1
Posts: 2
Reputation: 1,520

Post » Wed Mar 15, 2017 12:32 am

Anything on this?
B
14
S
4
G
1
Posts: 2
Reputation: 1,520

Post » Wed Mar 15, 2017 3:08 am

"Basic usage
To use the Google Play plugin, you must first wait for it to finish loading. Do not attempt to use any features of the plugin until On loaded triggers, or Is loaded is true.

Next the Google Play plugin will automatically try to sign the user in. If they have successfully signed in before, On signed in will trigger soon after loading. If they have never signed in before, On auto-sign in failed will trigger; in this event you should show a button that allows the user to sign in. When they click this button, use the Sign in action; if it succeeds, On signed in will be triggered.

Once the user is signed in, you can make use of the other plugin features such as requesting leaderboards, submitting high-scores, and unlocking achievements."
https://www.scirra.com/manual/175/google-play

https://developers.google.com/games/services/
B
25
S
16
G
26
Posts: 125
Reputation: 16,103

Post » Sun Mar 19, 2017 3:56 pm

I can't seem to find anything related to Google Play sessions, but "cookies" and "session" (or "sessions") are the key words you are looking for.
This is generally how it is supposed to work: http://machinesaredigging.com/2013/10/2 ... sion-work/
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857

Post » Fri Mar 24, 2017 11:48 pm

Do you have the Cranberry Cordova plug-in? Do on Start of Layout Cordova Game login. Basically on start of layout, in the action select Cordova Game and do login. Make sure you get the Cordova game number from Google Play and put that into the Cordova Game object.
B
20
S
7
G
3
Posts: 302
Reputation: 3,634

Post » Tue Mar 28, 2017 7:22 pm

Did that work? Basically On Start of Layout > Cordova Login.
B
20
S
7
G
3
Posts: 302
Reputation: 3,634


Return to How do I....?

Who is online

Users browsing this forum: Eren, koops and 7 guests