Interactive wizard that fully provisions FCM credentials for Android push notifications — no Firebase console browsing required.
Run from your project root:
mix mob_push.setup.fcmThe wizard will:
- Open your browser to Google sign-in (OAuth 2.0)
- Let you pick an existing Firebase project or create a new one
- Register your Android app and download
google-services.json - Enable the FCM HTTP v1 API
- Create a
mob-fcmservice account with minimal IAM permissions - Generate a service-account JSON key and save it to
~/.mob/keys/ - Append the config block to
config/runtime.exs
Options
--dry-run— narrate all steps without making any API calls or writing files
Prerequisites
A Google account with access to Firebase is all that's required. The wizard can create the Firebase project if one doesn't exist yet.
Google OAuth client
The wizard uses a bundled OAuth "Desktop app" client registered for Mob. You can override with environment variables if your organisation requires its own:
export GOOGLE_OAUTH_CLIENT_ID=...
export GOOGLE_OAUTH_CLIENT_SECRET=...