-
Notifications
You must be signed in to change notification settings - Fork 50
On fresh install, first authentication fails, but will succeed on the second app open. #188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Android or iOS? |
I was experiencing it on iOS. Didn't check android. |
I am unable to replicate the behavior on iOS. Can you share the code for your auth flow? Are you seeing an error, or are you just not seeing auth succeeding? |
The problem was that Future<void> signIn(
BehaviorSubject<List<LoadingMessage>> loadProgressStream$) async {
if (!_connectivityService.hasConnectivity) return;
if (await Env.isEmulator) return;
if (await isSignedIn) {
debugPrint("Player already signed into Games Services");
return;
}
try {
await GameAuth.signIn();
} catch (e, stackTrace) {
debugPrint("Error signing into Games Services: ${e.toString()}");
await ExceptionHandlerService.captureException(e, stackTrace: stackTrace);
loadProgressStream$.add([
...loadProgressStream$.value,
LoadingMessage(
id: LoadingMessage.incrementId(loadProgressStream$),
message: 'failed to sign into games services',
status: LoadingStatus.error,
)
]);
}
} |
Thanks for the quick response. I will implement a similar flow and find the issue. |
My pleasure! Thank you for all of your hard work on this package. |
Please try the patch. games_services:
git:
url: https://github.com/Abedalkareem/games_services.git
ref: bugfix/back-compat
path: games_services |
"Because every version of games_services from git depends on games_services_platform_interface ^4.1.1 which doesn't match any versions, games_services from git is forbidden." I tried using a dependency_override but games_services is not linking to the path of games_services_platform_interface, it's linking to a hosted version. |
Sorry. Please pull again, if that doesn't work, please run |
That fixed it! On a fresh install, I'm now getting proper authentication. Thank you! |
Flutter v3.24.3
games_services: using develop branch
Seems to be working properly on the stable release.
The text was updated successfully, but these errors were encountered: