how can i set timeout when i using GoogleSignInClient。

9 views
Skip to first unread message

李林娜

unread,
Dec 3, 2019, 12:54:21 AM12/3/19
to CodenameOne Discussions
If you are experiencing an issue please mention the full platform your issue applies to:
IDE: NetBeans/Eclipse/IDEA
Desktop OS
Simulator
Device

the code is following:
GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_GAMES_SIGN_IN)
        .requestServerAuthCode(webAuthID)//mini world
.build();
GoogleSignInClient mGoogleSignInClient = GoogleSignIn.getClient(this, gso);
Intent signInIntent = mGoogleSignInClient.getSignInIntent();
startActivityForResult(signInIntent, 11);

I want to know how set timeout . if my network is bad , I have to wait for a few minutes to receive the onActivityResult callback

Shai Almog

unread,
Dec 3, 2019, 9:49:51 PM12/3/19
to CodenameOne Discussions
Did you follow the signin tutorial here: https://www.codenameone.com/manual/misc-features.html
None of this code is necessary.
Reply all
Reply to author
Forward
0 new messages