This demo showcases using the PowerSync .NET SDK with .NET MAUI (Android, iOS or Windows).
To run this demo, you need to have one of our Node.js self-host demos (Postgres | MongoDB | MySQL) running, as it provides the PowerSync server that this demo's SDK connects to.
Changes made to the backend's source DB or to the self-hosted web UI will be synced to this client (and vice versa).
In the repo root, run the following to download the PowerSync extension:
dotnet run --project Tools/Setup Then switch into the demo's directory:
Install dependencies:
dotnet restoredotnet build -t:Run -f:net8.0-iosSpecifyng an iOS simulator
dotnet build -t:Run -f:net8.0-ios -p:_DeviceName=:v2:udid=B1CA156A-56FC-4C3C-B35D-4BC349111FDFdotnet build -t:Run -f:net8.0-androidSpecifying an Android emulator
dotnet build -t:Run -f:net8.0-android -p:_DeviceName=emulator-5554dotnet run -f net8.0-windows10.0.19041.0You may need to overwrite the backend and PowerSync URLs when running an Android emulator on Windows.
BackendUrl = "http://10.0.2.2:6060";
PowerSyncUrl = "http://10.0.2.2:8080";