Example demonstrating the use of the PowerSync SDK for Capacitor together with a Capacitor App.
To see it in action:
cdinto this directory and runpnpm install.- Copy
.env.local.templateto.env.local, and complete the environment variables. You can generate a temporary development token, or leave blank to test with local-only data. - Run
pnpm start. - Open the localhost URL displayed in the terminal output in your browser.
To run the iOS version of the app run:
pnpm buildpnpm syncpnpm ios
To run the Android version of the app run:
pnpm buildpnpm syncpnpm android(to see console runchrome://inspect/#devicesin browser)