add-firebase-android

Add Firebase Android SDK for Crashlytics, FCM, Test Lab. Use when the user says 'add firebase android'.

khadinakbarlabs/expo-mobile-app-builder1 installsMITSynced Aug 26

Works with

Claude CodeCursorCodex CLIGitHub CopilotGemini CLI
---
name: add-firebase-android
description: Add Firebase Android SDK for Crashlytics, FCM, Test Lab. Use when the user says 'add firebase android'.
license: MIT
---

# Add Firebase (Android)

```bash
npx expo install @react-native-firebase/app @react-native-firebase/crashlytics
```

`app.json` plugin config; place `google-services.json` in `android/app/`.

## Crashlytics
```tsx
import crashlytics from '@react-native-firebase/crashlytics';
crashlytics().log('User opened paywall');
crashlytics().recordError(new Error('Custom error'));
crashlytics().setUserId(userId);
```

## Symbol upload (for native crashes)
Configure in `android/app/build.gradle`:
```gradle
apply plugin: "com.google.firebase.crashlytics"
firebaseCrashlytics { nativeSymbolUploadEnabled true }
```

## Test crash
```tsx
crashlytics().crash(); // hard crash
```
Wait 5 min → Firebase console → Crashlytics → see crash.

## Pair with
- `set-up-firebase-project`, `add-sentry-rn-android`

More Mobile skills

← All Mobile skills

Check your AI visibility

One URL in, a 0–100 score and the exact fixes out.

RUN THE CHECK

Browse all the tools

15 tools across six categories
13 of them never send your data anywhere

Free · No signup · No trial clock

SEE THE DIRECTORY