Closed mschipperheyn closed 5 years ago
I see no stacktrace pointing to the TSLocationManager
.
Sorry
Process: swoop [34625]
Path: /Users/USER/Library/Developer/CoreSimulator/Devices/80B97AB7-4617-442A-B7E8-BD01FD26AA68/data/Containers/Bundle/Application/F471A1E1-A493-43CE-A2EC-4F77805DA622/swoop.app/swoop
Identifier: swoop
Version: 1.0.0 (1)
Code Type: X86-64 (Native)
Parent Process: launchd_sim [28591]
Responsible: swoop [34625]
User ID: 501
Date/Time: 2018-12-17 12:58:23.841 -0200
OS Version: Mac OS X 10.14.1 (18B75)
Report Version: 12
Bridge OS Version: 3.1 (16P1065)
Anonymous UUID: CE724EC2-2DDF-2D15-AAC5-D1337BD5BEE6
Sleep/Wake UUID: 08B5F241-8D08-4BBC-BD7E-765855A92947
Time Awake Since Boot: 72000 seconds
Time Since Wake: 7200 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Actions added to UIAlertController must have a title'
terminating with uncaught exception of type NSException
abort() called
CoreSimulator 581.2 - Device: iPhone 8 - Runtime: iOS 12.1 (16B91) - DeviceType: iPhone 8
Application Specific Backtrace 1:
0 CoreFoundation 0x00000001120451bb __exceptionPreprocess + 331
1 libobjc.A.dylib 0x00000001101d6735 objc_exception_throw + 48
2 CoreFoundation 0x0000000112044f42 +[NSException raise:format:arguments:] + 98
3 Foundation 0x000000010fbd9877 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 194
4 UIKitCore 0x000000011e007147 +[UIAlertAction _actionWithTitle:descriptiveText:image:style:handler:shouldDismissHandler:] + 660
5 UIKitCore 0x000000011e0071e5 +[UIAlertAction _actionWithTitle:image:style:handler:shouldDismissHandler:] + 138
6 UIKitCore 0x000000011e007389 +[UIAlertAction actionWithTitle:style:handler:] + 98
7 swoop 0x000000010e4ffc78 +[LocationAuthorization getAlertController] + 366
8 swoop 0x000000010e4ff513 +[LocationAuthorization run:] + 561
You have provided only 3 of 5 keys. You must provide all the keys. See the docs
⚠️ Warning: If you choose to configure locationAuthorizationAlert, you must provide ALL the keys of LocationAuthorizationAlert keys — not just some.
locationAuthorizationAlert = {
instructions = "You must enable 'Always' in location-services";
titleWhenNotEnabled = "You need to enable background location tracking";
titleWhenOff = "You need to enable location tracking";
};
Our app uses background geolocation processing. When the app is in the foreground and location permissions are changed, the
onProviderChange
handler executed and directs our users to our location permission page.However, when the user changes permissions while the app is not active and then opens the app a crash immediately happens. I can't say with 100% certainty that this is caused by geolocation, but since it's the only background processing going on and the app doesn't even start, I assume this is the case.
Your Environment
react-native -v
): 0.57.8Expected Behavior
Location permission detection should call the location provider change handler
Actual Behavior
Hard crash
Steps to Reproduce
Implement geolocation with background processing. Close app Turn location permissions to : When in use Restart application
Context
Testing what happens if location permissions change while the app is off
Debug logs