ionic-firebase
Installation
SKILL.md
Firebase (Auth + Firestore)
The default backend for most Ionic apps. Auth handles sign-up / sign-in (including social providers); Firestore handles persistent data with realtime sync and offline support.
When to consult
- Project setup + native config files (
google-services.json,GoogleService-Info.plist): setup.md - Auth (email, Google, Apple, magic link): auth.md
- Firestore (read/write/realtime/offline): firestore.md
- Per-framework integration snippets: framework-snippets.md
Library choice
Two viable approaches:
| Approach | When to pick |
|---|---|
Firebase JS SDK (firebase npm package) |
Web-first, simple cases, web/mobile parity. Works in browser, iOS WKWebView, Android WebView. Auth popups can be tricky on native. |
Capacitor Firebase plugins (@capacitor-firebase/*) |
Native auth dialogs (Google sign-in via native sheets), offline Firestore via native SDKs, push via native FCM. More setup, much better UX. |