You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: integration-guides/flutterflow-+-powersync.mdx
+47-1Lines changed: 47 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,10 @@ Used in conjunction with **FlutterFlow**, PowerSync enables developers to build
24
24
Note that using libraries in FlutterFlow requires being on a [paid plan with FlutterFlow](https://www.flutterflow.io/pricing). If this is not an option for you, you can use our [legacy guide](/integration-guides/flutterflow-+-powersync/powersync-+-flutterflow-legacy) with custom code to integrate PowerSync in your FlutterFlow project.
25
25
</Tip>
26
26
27
+
<Note>
28
+
This guide uses **Supabase** as the backend database provider for its seamless integration with PowerSync. However, you can integrate a different backend using custom actions. For more information, refer to the [Custom backend connectors](#custom-backend-connectors) section.
29
+
</Note>
30
+
27
31
## Guide Overview
28
32
29
33
<Note>
@@ -595,7 +599,7 @@ bucket_definitions:
595
599
**Checkpoint:** Your app should continue running seamlessly as before.
596
600
</Check>
597
601
598
-
## Arrays, JSON and other types
602
+
## Arrays, JSON and Other Types
599
603
600
604
For column values, PowerSync supports three basic types: Integers, doubles, and strings. These types have been chosen because
601
605
they're natively supported by SQLite while also being easy to transport as JSON.
@@ -671,6 +675,48 @@ This allows you to customize how individual values are represented for Postgres.
671
675
column of the `lists` table is decoded as JSON so that it's uploaded as a proper array while being stored
672
676
as a list locally.
673
677
678
+
## Custom Backend Connectors
679
+
680
+
To enable an easy setup, the PowerSync FlutterFlow library integrates with Supabase by default. This means
681
+
that as long as you use Supabase for authentication in your app, PowerSync will automatically connect as
682
+
soon as users log in, and can automatically upload local writes to a Supabase database.
683
+
684
+
For apps that don't use Supabase, you can disable this default behavior and instead rely on your own
685
+
backend connectors.
686
+
For this, create your own custom action (e.g. `applyPowerSyncOptions`). It's important that this action runs
687
+
before anything else in your app uses PowerSync, so add this action to your `main.dart` as a final action.
0 commit comments