How a React Native Team Fixed Android Native Crashes Threatening Live Truck Tracking

Truxo Tracker, the driver-facing app for truxo.ai, relies on uninterrupted Android background location tracking to monitor freight loads worth tens of thousands of dollars. Over ten months, the engineering team traced repeated native Java NullPointerExceptions — surfaced via Firebase Crashlytics — to expo-task-manager's native source code, well below the JavaScript layer where standard error handling cannot reach. Initial fixes addressed app-side mistakes such as incorrect task registration order and illegal foreground service calls from a backgrounded state, reducing crash volume but not eliminating it. Because the remaining bugs lived inside vendored native code in node_modules, the team used Expo's withDangerousMod config plugin to apply idempotent build-time patches to the affected Java files without maintaining a permanent fork. The approach allowed the team to ship targeted native fixes through the existing Expo prebuild pipeline while an upstream bug report remained open.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in