Fix React Native Android 15 Crash

Customer: AI | Published: 20.11.2025

I have a React Native mobile app that streams the user’s position to our API through a foreground service. On Android 12 everything runs flawlessly, yet on Android 15 the moment I tap “Start Tracking” the app stops unexpectedly. Key facts • Permissions—ACCESS_FINE_LOCATION, ACCESS_BACKGROUND_LOCATION, and FOREGROUND_SERVICE—are already granted on Android 15. • Background tracking is implemented as a foreground service (no WorkManager or AlarmManager). • The crash gives no visible stack trace; the system dialog just reports “App keeps stopping.” What I need 1. Diagnose the exact cause of the Android 15 crash. 2. Supply the code or Gradle/Manifest changes required to restore continuous location updates. 3. Explain the fix so I can replicate it in staging and production builds. Acceptance The patched APK must: • Start and stop tracking without crashing on Android 15 devices. • Keep sending location updates while the app is in the background or screen-off state for at least 30 minutes. • Pass Play Store policy checks for background location and foreground service usage. I can provide the existing React Native project, the native Android modules written in Kotlin, and logs collected with adb. Once the solution runs cleanly on Android 15, I will merge and deploy.