We're happy to announce the release of versions 7.0 and 6.1 of the Appwrite SDKs for Flutter and Dart. The new versions add some fixes and update outdated dependencies for both SDKs.
We're also happy to share that version 7.0 of the Flutter SDKs now fully supports OAuth authentication for Windows applications. If you're already using OAuth authentication with previous versions of the Appwrite SDK with Android devices, you will need to make sure you update the AndroidManifest.xml
manifest file with the new settings:
<manifest ...>
...
<application ...>
...
<!-- Add this inside the `<application>` tag, along side the existing `<activity>` tags -->
<activity android:name="com.linusu.flutter_web_auth_2.CallbackActivity" android:exported="true">
<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>
</application>
</manifest>
In case you're using the package with web applications, you will need to update your callback file like the following example:
<!DOCTYPE html>
<title>Authentication complete</title>
<p>Authentication is complete. If this does not happen automatically, please
close the window.
<script>
window.opener.postMessage({
'flutter-web-auth2': window.location.href
}, window.location.origin);
window.close();
</script>
As you can see, the change is minor and meant to indicate that Appwrite is now using the flutter_web_auth_2
package instead of flutter_web_auth
. The new package includes multiple improvements and bug fixes that should enable a better experience when using the Appwrite SDK for Flutter.
This is also a great opportunity to thank Nico Mexis for forking and maintaining the new flutter_web_auth_2 package and to many of the Appwrite community members, including Dom Jocubeit, Bishwajeet Parhi, Agon Noga and Kamil Pyrkosz for raising, discussing and helping address those issues.
Learn More
If you're new to Appwrite, Appwrite is a fully 100% open source backend as a service platform providing developers with all the core APIs required to build Web or Mobile applications. You can learn more about Appwrite and get started with the Appwrite SDK by visiting the Appwrite Documentation.
Top comments (1)
So nice