pocketbase_server_flutter

Last updated:

0 purchases

pocketbase_server_flutter Image
pocketbase_server_flutter Images
Add to Cart

Description:

pocketbase server flutter

Pocketbase Server Flutter #
Run Pocketbase Server directly from Android/IOS with flutter

Usage #
Checkout Pocketbase Server example app
Start pocketbaseServer
PocketbaseServerFlutter.start(
hostName: await PocketbaseServerFlutter.localIpAddress,
port: "8080",
dataPath: null,
enablePocketbaseApiLogs: true,
);
copied to clipboard
Stop pocketbaseServer
PocketbaseServerFlutter.stop();
copied to clipboard
Listen to pocketbaseServer events, setup eventCallback
PocketbaseServerFlutter.setEventCallback(
callback: (event, data){
// Handle event and data
},
);
copied to clipboard
Some helper methods
// To check if pocketBase is running (not reliable)
PocketbaseServerFlutter.isRunning

// To check pocketbaseMobile version
PocketbaseServerFlutter.pocketbaseMobileVersion

// To get the ipAddress of mobile ( to run pocketbase with this hostname )
PocketbaseServerFlutter.localIpAddress
copied to clipboard
Setup #

IOS

If getting error related to Undefined symbol, Make sure to run pod install on ios directory, open IOS project in XCode
Click on Pods, Then select pocketbase_server_flutter from Targets list, and select Build Phases

Then in Link Binary With Libraries section, click on + button and search for libresolv.tbd and choose from result and click on Add


Android

Should work out of the box
Resources #
https://pocketbase.io/
Built with: pocketbase_mobile, pocketbase_android, pocketbase_ios
Note #
This is for running Pocketbase server from mobile, to connect with pocketbase server, use official pockebase client plugin

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.