Why use Google Firebase Crashlytics
- App crash events: Native crash reporting.
- WebView console errors: WebView console errors logged to Crashlytics.
- Android toast errors: Android-only (for example, SSL certificate warnings).
- Runtime control: Enable/disable log collection and set user IDs via the Median JavaScript Bridge.
Prerequisites
- A Median app with the JavaScript Bridge enabled
- Firebase project with Crashlytics enabled
-
GoogleService-Info.plist(iOS) andgoogle-services.json(Android) from Firebase Console - Plugin purchased and enabled in Median App Studio
When to use this plugin
Use Firebase Crashlytics if your app needs to:Integration guide
Enable the plugin
- Navigate to Native Plugins: Open your app in Median App Studio and go to the Native Plugins section.
- Enable Firebase Crashlytics: Select Google Firebase Crashlytics from your list of purchased plugins and enable it.
- Configure log collection: Use the options below to customize which logs are collected.

Enable Firebase Crashlytics in App Studio
Configuration options
Toggle the options as needed, then click Advanced Mode for further configuration.

Enable or disable specific log types
App configuration
- Register your app in the Firebase Console.
-
Download the configuration files:
- Android:
google-services.json - iOS:
GoogleService-Info.plist
- Android:
- Upload GoogleService-Info.plist (iOS) and google-services.json (Android) in App Studio under Build & Deploy → Google Services. You can upload the files from Firebase or copy and paste their contents into App Studio.
Use your AI agent
Use the Median MCP with your AI agent to enable Firebase Crashlytics and add your Firebase configuration files to your mobile app. See Median MCP server to set it up.
Finalizing the app build
Once the configuration files are uploaded, save the changes and rebuild your app.
Upload your GoogleService-Info.plist and google-services.json configurations
JavaScript Bridge functions
The Median JavaScript Bridge allows you to control Crashlytics at runtime.Enable/disable logs collection
Enable or disable Crashlytics log collection at runtime.Set user ID
Assign a custom user ID to track crash logs per user in Firebase. Persists between app launches; cleared on uninstall/reinstall.Unset user ID
Remove the previously set user ID.Optional: Request user consent for log collection
To comply with privacy policies or regulations, you can ask users for permission before collecting logs. Enable the permission prompt by setting requestOptIn to true in the plugin configuration. Users will see a permission dialog on first app launch after installation.
Request user opt-in for log collection
Testing checklist
Use this checklist to verify Crashlytics is configured and logging as expected:Basic functionality
- Firebase Crashlytics plugin is enabled in App Studio
-
GoogleService-Info.plist(iOS) andgoogle-services.json(Android) are uploaded in Build & Deploy → Google Services - App is rebuilt after saving configuration changes
-
median.firebaseCrashlytics.enable(true)enables log collection at runtime
Platform testing
-
median.firebaseCrashlytics.webErrorLogsEnabled(true/false)updates WebView error logging behavior -
median.firebaseCrashlytics.toastErrorLogsEnabled(true/false)updates Android toast error logging behavior
Configuration testing
-
median.firebaseCrashlytics.setUserId('user_123')sets a user identifier for crash logs -
median.firebaseCrashlytics.unsetUserId()removes the user identifier - If
requestOptInis enabled, the permission prompt appears on first app launch after install
User experience
- Open https://median.dev/crashlytics inside your app and confirm logs/events are received in Firebase Crashlytics
- Consent prompt (if used) appears at an appropriate time and copy matches your policy
Troubleshooting
Crashlytics functions are undefined or not working
Ensure the JavaScript Bridge is enabled in App Studio and that you call functions after themedian_library_ready() event. Verify the plugin is enabled and GoogleService-Info.plist (iOS) and google-services.json (Android) are uploaded in Build & Deploy → Google Services.
Logs do not appear in Firebase Crashlytics
Confirm the app was rebuilt after uploading Google services files and saving plugin settings. Also verify log collection is enabled withmedian.firebaseCrashlytics.enable(true) and that the correct Firebase project files were uploaded for each platform.
WebView errors are not being captured
Check thatwebErrorLogsEnabled is enabled in plugin settings (and at runtime if you manage it dynamically).
Android toast errors are not being captured
toastErrorLogsEnabled applies to Android only. Ensure it is enabled in settings and test on an Android build.
User consent prompt does not appear
The prompt only appears whenrequestOptIn is enabled and is shown on first launch post-installation. Reinstall the app to retest first-launch behavior.
Still having trouble?For Firebase Crashlytics issues outside Median, refer to the Firebase Crashlytics documentation.