OGOriginal post
Web Developer
I'm experiencing two issues with the Google authentication flow using Appwrite SDK (v13.0.0) in my Flutter app (SDK v3.5.3).
Google Auth screen not closing
After successfully authenticating with Google, the authorization screen does not close, leaving the user stuck.
Environment:
Flutter SDK: ^3.5.3
Appwrite SDK: ^13.0.0
OS: Windows 11
Testing Device: Android 14
Future googleAuth() async {
try {
await AppwriteService.account.createOAuth2Session(
provider: OAuthProvider.google,
);
loadUser();
} on AppwriteException catch (e) {
handleAppwriteException(e);
} catch (e) {
print('An unexpected error occurred: $e');
}
}
Summary
Google Auth screen does not close after authentication in Flutter app using Appwrite SDK. Ensure the 'CallbackActivity' in the AndroidManifest.xml has the correct intent-filter configuration.