
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<void> 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'); } }
<activity android:exported="true" android:name="com.linusu.flutter_web_auth_2.CallbackActivity"> <intent-filter android:label="flutter_web_auth_2"> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="appwrite-callback-[PROJECT-ID]" /> </intent-filter> </activity>
Recommended threads
- [AppwriteException: Network request fail...
When I tried to list the documents from one of the collections, it would show Error: Network request failed. But if I tried others, it would show all of the doc...
- Question about adding duplicate worker-f...
1.) Is this still this is a valid strategy for having parallel processing of async function executions? I saw some support threads on the appwrite site which we...
- Need help on Flutter OAuth2
Am trying to use Appwrite OAuth (google, apple and facebook), am been on it for sometimes now which have tried many things but still not able to make it work: ...
