playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity
Other
3.47k stars 966 forks source link

Login prompts a second time when user choses not to login #1895

Closed ZimmerA closed 7 years ago

ZimmerA commented 7 years ago

The first time a user starts our app he gets prompted to login, iff he choses not to, it pops up again 2 seconds after they close the login prompt. This only happens once per Session.

I dont get any logs that indicate an error or a double method call. Is this the expected behavior and is there any way to change this?

claywilkinson commented 7 years ago

Which version of the plugin are you using? This was a problem in older versions, I think 0.9.40 took care of this. Are you requesting email, id token, or auth code? can you share a log?

ZimmerA commented 7 years ago

I used 9.38 until 2 days ago. After I updated to 9.40 it still happened though. Im using e-mail authentication. I would share a log but theres nothing happening in logcat when this occurs.

I just did some testing on a clean project and it doesnt occur there so i guess something went wrong when updating? Anyways im gonna try to update again and see if that fixes it, thanks for the answer!

Edit: I deleted every file having to do with the plugin and reinstalled it, the version says 9.40 yet the bug still occurs.

All I do is login on a button click and then, when it asks to select an e-mail, cancel the login. The bug only occurs on the first login attempt.

Heres the log:

08-29 16:14:20.180 19676-19695/de.companyname.gamename D/Unity: Unloading 3 unused Assets to reduce memory usage. Loaded Objects now: 7777.
08-29 16:14:20.180 19676-19695/de.companyname.gamename D/Unity: Total: 31.177000 ms (FindLiveObjects: 3.015000 ms CreateObjectMapping: 1.422000 ms MarkObjects: 26.511000 ms  DeleteObjects: 0.212000 ms)
08-29 16:14:22.690 19676-19676/de.companyname.gamename D/ViewRootImpl: ViewPostImeInputStage processPointer 0
08-29 16:14:22.780 19676-19676/de.companyname.gamename D/ViewRootImpl: ViewPostImeInputStage processPointer 1
08-29 16:14:22.810 19676-19695/de.companyname.gamename D/Unity: Unloading 0 Unused Serialized files (Serialized files now loaded: 0)
08-29 16:14:22.810 19676-19695/de.companyname.gamename D/Unity: Unloading 0 Unused Serialized files (Serialized files now loaded: 0)
08-29 16:14:22.810 19676-19695/de.companyname.gamename D/Unity: Unloading 0 Unused Serialized files (Serialized files now loaded: 0)
08-29 16:14:22.810 19676-19695/de.companyname.gamename D/Unity: Unloading 0 Unused Serialized files (Serialized files now loaded: 0)
08-29 16:14:22.820 19676-19695/de.companyname.gamename D/Unity: Unloading 0 Unused Serialized files (Serialized files now loaded: 0)
08-29 16:14:25.320 19676-19676/de.companyname.gamename D/ViewRootImpl: ViewPostImeInputStage processPointer 0
08-29 16:14:25.390 19676-19676/de.companyname.gamename D/ViewRootImpl: ViewPostImeInputStage processPointer 1
08-29 16:14:25.470 19676-19695/de.companyname.gamename D/GamesUnitySDK: Performing Android initialization of the GPG SDK
08-29 16:14:25.570 19676-19695/de.companyname.gamename I/Unity: Building GPG services, implicitly attempts silent auth
                                                                    UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
                                                                    UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
                                                                    UnityEngine.Logger:Log(LogType, Object)
                                                                    UnityEngine.Debug:Log(Object)
                                                                    GooglePlayGames.Native.NativeClient:InitializeGameServices() (at D:\Coding\unityprojects\pf2\Gamename\Assets\GooglePlayGames\Platforms\Native\NativeClient.cs:230)
                                                                    GooglePlayGames.Native.NativeClient:Authenticate(Action`2, Boolean) (at D:\Coding\unityprojects\pf2\Gamename\Assets\GooglePlayGames\Platforms\Native\NativeClient.cs:142)
                                                                    GooglePlayGames.PlayGamesPlatform:Authenticate(Action`2, Boolean) (at D:\Coding\unityprojects\pf2\Gamename\Assets\GooglePlayGames\ISocialPlatform\PlayGamesPlatform.cs:426)
                                                                    GooglePlayGames.PlayGamesPlatform:Authenticate(Action`1, Boolean) (at D:\Coding\unityprojects\pf2\Gamename\Assets\GooglePlayGames\ISocialPlatform\PlayGamesPlatform.cs:395)
                                                                    GooglePlayGames.PlayGamesPlatform:Authenticate(Action`1) (at D:\Co
08-29 16:14:25.580 19676-19695/de.companyname.gamename I/GamesNativeSDK: Writing 1941 bytes to jar file
08-29 16:14:25.860 19676-19695/de.companyname.gamename I/GamesNativeSDK: Writing 1066 bytes to jar file
08-29 16:14:26.030 19676-19695/de.companyname.gamename W/PopupManager: You have not specified a View to use as content view for popups. Falling back to the Activity content view. Note that this may not work as expected in multi-screen environments
08-29 16:14:26.030 19676-19912/de.companyname.gamename I/GamesNativeSDK: Auth operation started: SIGN IN
08-29 16:14:26.030 19676-19912/de.companyname.gamename I/GamesNativeSDK: Connecting to Google Play...
08-29 16:14:26.150 19676-19676/de.companyname.gamename V/GamesNativeSDK: Play Games callback indicates connection failure.
08-29 16:14:26.150 19676-19912/de.companyname.gamename I/GamesNativeSDK: UI interaction required to connect to Google Play.
08-29 16:14:26.220 19676-19912/de.companyname.gamename I/GamesNativeSDK: Auth operation started: SIGN IN
08-29 16:14:26.220 19676-19912/de.companyname.gamename I/GamesNativeSDK: Connecting to Google Play...
08-29 16:14:26.260 19676-19676/de.companyname.gamename V/GamesNativeSDK: Play Games callback indicates connection failure.
08-29 16:14:26.260 19676-19912/de.companyname.gamename I/GamesNativeSDK: UI interaction required to connect to Google Play.
08-29 16:14:26.260 19676-19912/de.companyname.gamename I/GamesNativeSDK: Resolving connection.
08-29 16:14:26.290 19676-19676/de.companyname.gamename I/Unity: onPause
08-29 16:14:26.320 19676-19695/de.companyname.gamename W/Unity: !!! [Play Games Plugin DLL] 08/29/17 16:14:26 +02:00 WARNING: Creating new PlayGamesPlatform
                                                                    UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
                                                                    UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
                                                                    UnityEngine.Logger:Log(LogType, Object)
                                                                    UnityEngine.Debug:LogWarning(Object)
                                                                    GooglePlayGames.OurUtils.<w>c__AnonStorey45:<>m__2D() (at D:\Coding\unityprojects\pf2\Gamename\Assets\GooglePlayGames\OurUtils\Logger.cs:68)
                                                                    GooglePlayGames.OurUtils.PlayGamesHelperObject:Update() (at D:\Coding\unityprojects\pf2\Gamename\Assets\GooglePlayGames\OurUtils\PlayGamesHelperObject.cs:135)(Filename: D Line: 0)
08-29 16:14:26.340 19676-19929/de.companyname.gamename I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
08-29 16:14:26.340 19676-19929/de.companyname.gamename I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
08-29 16:14:26.680 19676-19695/de.companyname.gamename D/Unity: Sensor :        Accelerometer ( 1) ; 0.000599 / 0.00s ; MPU6500 Acceleration Sensor / Invensense 
08-29 16:14:26.700 19676-19676/de.companyname.gamename I/Unity: windowFocusChanged: false
08-29 16:14:27.220 19676-19676/de.companyname.gamename V/ActivityThread: updateVisibility : ActivityRecord{2e293aa token=android.os.BinderProxy@1eab64c {de.companyname.gamename/com.unity3d.player.UnityPlayerActivity}} show : true
08-29 16:14:32.330 19676-19676/de.companyname.gamename V/GamesNativeSDK: Received Activity Resume Event.
08-29 16:14:32.330 19676-19676/de.companyname.gamename I/Unity: onResume
08-29 16:14:32.350 19676-19676/de.companyname.gamename I/Unity: windowFocusChanged: true
08-29 16:14:32.350 19676-19676/de.companyname.gamename I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@1eab64c time:8508158
08-29 16:14:32.370 19676-19695/de.companyname.gamename D/Unity: Sensor :        Accelerometer ( 1) ; 0.000599 / 0.00s ; MPU6500 Acceleration Sensor / Invensense 
08-29 16:14:32.380 19676-19695/de.companyname.gamename D/Unity: Choreographer available: Enabling VSYNC timing
08-29 16:14:32.460 19676-19676/de.companyname.gamename V/GamesNativeSDK: Play Games callback indicates connection failure.
08-29 16:14:32.460 19676-19912/de.companyname.gamename I/GamesNativeSDK: UI interaction required to connect to Google Play.
08-29 16:14:33.500 19676-19676/de.companyname.gamename V/GamesNativeSDK: Play Games callback indicates connection failure.
08-29 16:14:33.500 19676-19912/de.companyname.gamename I/GamesNativeSDK: UI interaction required to connect to Google Play.
08-29 16:14:34.540 19676-19676/de.companyname.gamename V/GamesNativeSDK: Play Games callback indicates connection failure.
08-29 16:14:34.540 19676-19912/de.companyname.gamename I/GamesNativeSDK: UI interaction required to connect to Google Play.
08-29 16:14:35.580 19676-19676/de.companyname.gamename V/GamesNativeSDK: Play Games callback indicates connection failure.
08-29 16:14:35.580 19676-19912/de.companyname.gamename I/GamesNativeSDK: UI interaction required to connect to Google Play.
08-29 16:14:35.580 19676-19912/de.companyname.gamename I/GamesNativeSDK: Auth operation started: SIGN IN
08-29 16:14:35.580 19676-19912/de.companyname.gamename I/GamesNativeSDK: Connecting to Google Play...
08-29 16:14:35.610 19676-19676/de.companyname.gamename V/GamesNativeSDK: Play Games callback indicates connection failure.
08-29 16:14:35.610 19676-19912/de.companyname.gamename I/GamesNativeSDK: UI interaction required to connect to Google Play.
08-29 16:14:35.610 19676-19912/de.companyname.gamename I/GamesNativeSDK: Resolving connection.
08-29 16:14:35.620 19676-19676/de.companyname.gamename I/Unity: onPause
08-29 16:14:35.640 19676-19998/de.companyname.gamename I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
08-29 16:14:35.640 19676-19998/de.companyname.gamename I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
08-29 16:14:35.690 19676-19695/de.companyname.gamename D/Unity: Sensor :        Accelerometer ( 1) ; 0.000599 / 0.00s ; MPU6500 Acceleration Sensor / Invensense 
08-29 16:14:35.710 19676-19676/de.companyname.gamename I/Unity: windowFocusChanged: false
08-29 16:14:36.130 19676-19676/de.companyname.gamename V/ActivityThread: updateVisibility : ActivityRecord{2e293aa token=android.os.BinderProxy@1eab64c {de.companyname.gamename/com.unity3d.player.UnityPlayerActivity}} show : true
ZimmerA commented 7 years ago

Update: Adding .RequestEmail() to my config fixed the bug.