@athletic/capacitor-firebase-realtime
v8.1.0
Published
Capacitor Firebase Realtime plugin
Readme
capacitor-firebase-realtime
Capacitor Firebase Realtime plugin
Install
npm install @athletic/capacitor-firebase-realtime
npx cap synciOS
Both Swift Package Manager and CocoaPods are supported.
- Swift Package Manager (default for Capacitor 6+ apps):
npx cap sync iosadds theAthleticCapacitorFirebaseRealtimepackage to your app'sCapApp-SPMpackage automatically. Depends onfirebase-ios-sdk11.6 through 12.x. - CocoaPods:
npx cap sync iosadds theAthleticCapacitorFirebaseRealtimepod to your Podfile. It depends on theFirebaseAuthandFirebaseDatabasepods and is built as a static framework.
Your app must include its own GoogleService-Info.plist; the plugin calls
FirebaseApp.configure() on load if no default Firebase app exists yet.
API
signOut()
signOut() => Promise<null>Returns: Promise<null>
initialize(...)
initialize(options: { signedInUserId: number; }) => Promise<{ signedIn: boolean; }>| Param | Type |
| ------------- | ---------------------------------------- |
| options | { signedInUserId: number; } |
Returns: Promise<{ signedIn: boolean; }>
signInWithCustomToken(...)
signInWithCustomToken(options: { token: string; }) => Promise<null>| Param | Type |
| ------------- | ------------------------------- |
| options | { token: string; } |
Returns: Promise<null>
updateChildren(...)
updateChildren(options: { path: string; data: any; }) => Promise<null>| Param | Type |
| ------------- | ----------------------------------------- |
| options | { path: string; data: any; } |
Returns: Promise<null>
