Skip to content

Commit 4c82073

Browse files
Add appmetadata to demo
1 parent d7a6881 commit 4c82073

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

demos/supabase-todolist/lib/powersync.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,11 @@ Future<void> openDatabase() async {
171171
// If the user is already logged in, connect immediately.
172172
// Otherwise, connect once logged in.
173173
currentConnector = SupabaseConnector();
174-
db.connect(connector: currentConnector, options: options);
174+
db.connect(
175+
connector: currentConnector,
176+
options: SyncOptions(
177+
syncImplementation: SyncClientImplementation.rust,
178+
appMetadata: {'app_version': '1.0.1'}));
175179
}
176180

177181
Supabase.instance.client.auth.onAuthStateChange.listen((data) async {

0 commit comments

Comments
 (0)