With recent versions of the app, whenever the app is started in the background, there is some sort of bug or race condition which results in iOS killing the app. This prevents things like background location tracking from working.
Here is a recent crash report from a test phone:
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d
Termination Description: SPRINGBOARD, scene-create watchdog transgression: com.hippware.ios.ChatStaging exhausted real (wall clock) time allowance of 29.65 seconds | ProcessVisibility: Background | ProcessState: Running | WatchdogEvent: scene-create | WatchdogVisibility: Background | WatchdogCPUStatistics: ( | "Elapsed total CPU time (seconds): 18.390 (user 18.390, system 0.000), 31% CPU", | "Elapsed application CPU time (seconds): 3.509, 6% CPU" | )
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001e64600f4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001e645f5a0 mach_msg + 72
2 CoreFoundation 0x00000001e6860120 __CFRunLoopServiceMachPort + 236
3 CoreFoundation 0x00000001e685b030 __CFRunLoopRun + 1360
4 CoreFoundation 0x00000001e685a7c0 CFRunLoopRunSpecific + 436
5 Foundation 0x00000001e7228eac -[NSRunLoop+ 32428 (NSRunLoop) runMode:beforeDate:] + 300
6 Foundation 0x00000001e7228d3c -[NSRunLoop+ 32060 (NSRunLoop) runUntilDate:] + 96
7 tinyrobotStaging 0x00000001008220c8 +[RNSplashScreen show] + 2449608 (RNSplashScreen.m:31)
8 tinyrobotStaging 0x00000001005d1334 -[AppDelegate application:didFinishLaunchingWithOptions:] + 21300 (AppDelegate.m:104)
Log: tinyrobotStaging-2019-07-25-113117.ips.beta.crash.txt
This is one of the causes of #3926 and possibly the only cause.
It's not clear what the actual problem is. It sounds similar to
Crash on Splash Screen iOS 12.3.1 #397
crazycodeboy/react-native-splash-screen#397
and I followed the links to eventually find a suggested work-around here:
crazycodeboy/react-native-splash-screen#234 (comment)
With recent versions of the app, whenever the app is started in the background, there is some sort of bug or race condition which results in iOS killing the app. This prevents things like background location tracking from working.
Here is a recent crash report from a test phone:
Log: tinyrobotStaging-2019-07-25-113117.ips.beta.crash.txt
This is one of the causes of #3926 and possibly the only cause.
It's not clear what the actual problem is. It sounds similar to
Crash on Splash Screen iOS 12.3.1 #397
crazycodeboy/react-native-splash-screen#397
and I followed the links to eventually find a suggested work-around here:
crazycodeboy/react-native-splash-screen#234 (comment)