mix mob_push.install (mob_push v0.2.0)

Copy Markdown View Source

Interactive setup for mob_push — generates config stubs for APNs (iOS) and FCM (Android) in your project's config/runtime.exs.

Run from your project root (the directory containing mix.exs):

mix mob_push.install

Before you run this

Have the following ready, or choose "skip" to insert placeholders you can fill in later. Neither platform is required — skip one if your app is iOS-only or Android-only.

iOS (APNs) — from Apple Developer portal

  • Key ID — 10-char string, e.g. XXXXXXXXXX. Found in Certificates, Identifiers & Profiles → Keys.
  • Team ID — 10-char string from Membership Details.
  • APNs Auth Key (.p8 file) — download from Keys. Apple only lets you download it once, so keep it safe.
  • Bundle ID — your app's bundle identifier, e.g. com.example.myapp.

Android (FCM) — from Firebase console

  • Project ID — shown in Project Settings.
  • Service Account JSON — from Project Settings → Service Accounts → Generate new private key. Download and store the JSON file.

Options

  • --ios-only — skip FCM prompts
  • --android-only — skip APNs prompts
  • --skip-all — write placeholder config for both platforms and exit