Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 1.58 KB

File metadata and controls

60 lines (41 loc) · 1.58 KB

.NET MAUI ToDo List Demo App

This demo showcases using the PowerSync .NET SDK with .NET MAUI (Android, iOS or Windows).

How to test:

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 restore

Running the App

iOS

dotnet build -t:Run -f:net8.0-ios

Specifyng an iOS simulator

dotnet build -t:Run -f:net8.0-ios -p:_DeviceName=:v2:udid=B1CA156A-56FC-4C3C-B35D-4BC349111FDF

Android

dotnet build -t:Run -f:net8.0-android

Specifying an Android emulator

dotnet build -t:Run -f:net8.0-android -p:_DeviceName=emulator-5554

Windows

dotnet run -f net8.0-windows10.0.19041.0

Android on Windows

You 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";