SonarCocosHelper- gpgs Login Question
Cocos Helper (C++)-
MoseHasLikes 0Problem Description
Hi there.
I just found out a question while using SonarCocosHelper.
Originally my AppDelegate call MenuScene directly, and also I wrote gpgs login here. Today I just added the splash scene and was going to add gpgs login in the SplashScene.
However, I have not added it, the app loaded gpgs service automatically. I have triple checked and was pretty sure that my code about gpgs login was still in MenuScene.
Can’t figure out why.
Will SonarCocosHelper automatically login if I turn on gpgs in SonarFrameworkSettings.java?
Thanks.
-
Sonar Systems adminLikes 0
Where in the app does it logon?
This reply has been verified.
-
MoseHasLikes 0
NO WHERE! That’s the strangest thing.
I canceled the only line about login gpgs but it still logged in.
This reply has been verified.
-
Sonar Systems adminLikes 0
You deleted all login lines from your project?
This reply has been verified.
-
MoseHasLikes 0
Yes, even deleted including SonarFrameworks.h.
Pretty strange.
So basically this Helper only logs in when we call it, right?
This reply has been verified.
-
MoseHasLikes 0
Done. I use Visual Studio for modifying, but after I clean up project using Eclipse it stopped logging in automatically.
This reply has been verified.
-
Sonar Systems adminLikes 0
COOL
This reply has been verified.
-
TinyMineLikes 0
Hmm… same happens to me here.
Starting the app → immediate login to google
(no code like signin oder something like that is prevented in my own code)
This reply has been verified.
-
Sonar Systems adminLikes 0
ok, we are looking into this, is this a major issue for you?
This reply has been verified.
-
TinyMineLikes 0
not major no. But will be when porting it to ios (dunno if ios users will like the immediate login screen)
This reply has been verified.
-
TinyMineLikes 1
// Whether to automatically try to sign in on onStart(). We only set this // to true when the sign-in process fails or the user explicitly signs out. // We set it back to false when the user initiates the sign in process. boolean mConnectOnStart = false; /* * Whether user has specifically requested that the sign-in process begin. * If mUserInitiatedSignIn is false, we're in the automatic sign-in attempt * that we try once the Activity is started -- if true, then the user has * already clicked a "Sign-In" button or something similar */ boolean mUserInitiatedSignIn = false;
Found this in googleplaygameshelper.java from you.
Changed #mConnectOnStart to false. Now it does not login automatically anymore as explained in your document. Sorry I have missed that flag. Now a seperate login button can take the job.
Cheers
This reply has been verified.
-
Sonar Systems adminLikes 0
OK :D thats cool
This reply has been verified.
Login to reply