Plugins
Plugins ship inside the mobiler CLI. Adding one copies its Android and iOS code into your app’s shells and registers it, so your Rust core can call it:
mobiler plugin add sqlitemobiler plugin add biometricThe plugin’s native half is part of your app from then on. When a new CLI release updates a plugin, mobiler upgrade tells you, and running mobiler plugin add <name> again brings the new version in.
| Plugin | What it does |
|---|---|
analytics |
Analytics + crash reporting (Firebase Analytics + Crashlytics) (experimental) |
audio |
Record from the mic (→ file URI) and play audio |
background-fetch |
Periodic background wake (BGTaskScheduler / WorkManager) (experimental — not yet device-tested) |
battery |
Read the device battery level (sample) |
biometric |
Biometric auth — Face ID / fingerprint |
bluetooth |
Bluetooth LE — scan / connect / read / write / notify a characteristic (needs a real device) |
calendar |
Add an event via the system calendar editor |
composer |
Compose email / SMS / phone call via the system apps (no permission) |
connectivity |
Network connectivity status — online:wifi / online:cellular / offline |
contacts |
Pick a contact via the system picker → “name|phone” (no permission) |
filepicker |
Pick a file via the system document picker — returns a local URI |
files |
App file storage — read/write/list, download a URL, export to Files/Downloads |
geofence |
Background geofencing + significant-location-change (experimental — not yet device-tested) |
geolocation |
Device location → “lat,lng”; requests the location permission |
geolocation-fused |
Device location via Play Services FusedLocationProvider (higher accuracy; free) — alt to geolocation |
iap |
In-app purchase / subscriptions (StoreKit 2 / Play Billing) (experimental) |
notifications |
Local scheduled notifications — appointment/reminder alerts |
oauth |
OAuth 2.0 / OIDC login — system auth browser → redirect URL |
picker |
Native single-choice picker: a list of options, one chosen |
push |
Remote push (APNs/FCM) — server-sent notifications (Android FCM validated; iOS APNs experimental) |
push-firebase-only |
Remote push, Firebase-only (FCM on iOS + Android via the Firebase iOS SDK) (experimental) |
review |
Prompt for an in-app App Store / Play review (no permission) |
saveimage |
Save an image to the photo library — Photos / gallery (asks for add-only photo access on iOS) |
scanner |
Barcode / QR scanner — single-shot, returns |
securestore |
Secure key/value storage — Keychain / EncryptedSharedPreferences |
sensors |
Read motion sensors — accelerometer / gyroscope → “x,y,z” |
sharefile |
Share a file/image via the system share sheet (no permission) |
speech |
Speech-to-text dictation → recognized text |
sqlite |
On-device SQLite — exec / query → JSON rows |
transfer |
Streaming file upload/download — progress + cancel, multipart/form-data |
tts |
Text-to-speech — speak a string aloud (no permission) |
video |
Record a video with the camera → local URI |
websocket |
WebSocket — persistent real-time connection, streaming |