Closed krunduev closed 4 years ago
As the API docs for Authorization.refreshPayload. Yours in incorrect.
Authorization.refreshPayload MUST contain the {refreshToken}
template tag. Your configured Authorization.refreshToken
will be automatically rendered into this template.
This allows developers to flexibly control the form-field name for the "refresh token".
Some people may call it refresh_token
, others refreshToken
. Spanish developers might call it token_actualización
, French developers: rafraîchir_jeton
, etc.
Thats was right. On 13 iOS is ok without refreshToken in refreshPayload, but on iOS 12 iPhone 5s my mistake leads to crash
Your Environment
flutter doctor
): Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, v1.12.13+hotfix.9, on Mac OS X 10.14.5 18F132, locale en-US) [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3) [✓] Xcode - develop for iOS and macOS (Xcode 11.3) [✓] Android Studio (version 3.6) [!] IntelliJ IDEA Ultimate Edition (version 2019.3.2) ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. [✓] VS Code (version 1.42.1) [✓] Connected device (2 available)! Doctor found issues in 1 category.
Expected Behavior
No crash
Actual Behavior
Crashed
Steps to Reproduce
Context
Use plugin for location in background
Debug logs
Logs
``` #4 0x0000000100c44174 in -[TSAuthorization applyResponseData:data:] at /Volumes/Glyph2TB/Users/chris/workspace/background-geolocation/native/transistor-locationmanager/src/ios/TSLocationManager/TSLocationManager/Config/TSAuthorization.m:226 #5 0x0000000100c43d64 in -[TSAuthorization refreshAuthorization:] at /Volumes/Glyph2TB/Users/chris/workspace/background-geolocation/native/transistor-locationmanager/src/ios/TSLocationManager/TSLocationManager/Config/TSAuthorization.m:200 #6 0x0000000100c438d4 in __43-[TSAuthorization resolve:success:failure:]_block_invoke at /Volumes/Glyph2TB/Users/chris/workspace/background-geolocation/native/transistor-locationmanager/src/ios/TSLocationManager/TSLocationManager/Config/TSAuthorization.m:158 #7 0x0000000212f0c688 in __75-[__NSURLSessionLocal taskForClass:request:uploadFile:bodyData:completion:]_block_invoke () 2020-04-19 13:23:45.309532+0300 Runner[1412:284393] -[__NSCFString stringValue]: unrecognized selector sent to instance 0x280faf0c0 Incident Identifier: EABD9022-5809-4EBE-B7C5-9B670254B1D3 CrashReporter Key: ed641d6b4a9b35addb71f28b2b1a2a37845062bd Hardware Model: iPhone6,1 Process: Runner [1367] Path: /private/var/containers/Bundle/Application/61B4B793-01DE-4269-9D02-4BE2BC013B77/Runner.app/Runner Identifier: xxx.xx Version: 1 (0.0.1) Code Type: ARM-64 (Native) Role: Non UI Parent Process: launchd [1] Coalition: xxx.xx [630] Date/Time: 2020-04-19 12:25:52.3503 +0300 Launch Time: 2020-04-19 12:21:43.1241 +0300 OS Version: iPhone OS 12.4.5 (16G161) Baseband Version: 10.80.02 Report Version: 104 Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Triggered by Thread: 14 Application Specific Information: abort() called Last Exception Backtrace: 0 CoreFoundation 0x212937180 __exceptionPreprocess + 228 1 libobjc.A.dylib 0x211b0f9f8 objc_exception_throw + 55 2 CoreFoundation 0x2128539bc -[NSObject+ 219580 (NSObject) doesNotRecognizeSelector:] + 139 3 CoreFoundation 0x21293c9c8 ___forwarding___ + 1407 4 CoreFoundation 0x21293e65c _CF_forwarding_prep_0 + 91 5 Runner 0x100e64174 0x1008b4000 + 5964148 6 Runner 0x100e63d64 0x1008b4000 + 5963108 7 Runner 0x100e638d4 0x1008b4000 + 5961940 8 CFNetwork 0x212f0c688 __75-[__NSURLSessionLocal taskForClass:request:uploadFile:bodyData:completion:]_block_invoke + 31 9 CFNetwork 0x212f20220 __49-[__NSCFLocalSessionTask _task_onqueue_didFinish]_block_invoke + 175 10 Foundation 0x21339ccf4 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 15 11 Foundation 0x2132a8d90 -[NSBlockOperation main] + 71 12 Foundation 0x2132a8278 -[__NSOperationInternal _start:] + 739 13 Foundation 0x21339ea78 __NSOQSchedule_f + 271 14 libdispatch.dylib 0x212374a38 _dispatch_call_block_and_release + 23 15 libdispatch.dylib 0x2123757d4 _dispatch_client_callout + 15 16 libdispatch.dylib 0x21231a01c _dispatch_continuation_pop$VARIANT$mp + 411 17 libdispatch.dylib 0x2123196e0 _dispatch_async_redirect_invoke + 599 18 libdispatch.dylib 0x212326030 _dispatch_root_queue_drain + 371 19 libdispatch.dylib 0x2123268d4 _dispatch_worker_thread2 + 127 20 libsystem_pthread.dylib 0x2125561b4 _pthread_wqthread + 463 21 libsystem_pthread.dylib 0x212558cd4 start_wqthread + 3 Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0: 0 libsystem_kernel.dylib 0x00000002124c80f4 mach_msg_trap + 8 1 libsystem_kernel.dylib 0x00000002124c75a0 mach_msg + 72 2 CoreFoundation 0x00000002128c8914 __CFRunLoopServiceMachPort + 236 3 CoreFoundation 0x00000002128c3824 __CFRunLoopRun + 1360 4 CoreFoundation 0x00000002128c2fb4 CFRunLoopRunSpecific + 436 5 GraphicsServices 0x0000000214ac479c GSEventRunModal + 104 6 UIKitCore 0x000000023ef6ac38 UIApplicationMain + 212 7 Runner 0x00000001008bcf38 0x1008b4000 + 36664 8 libdyld.dylib 0x00000002123868e0 start + 4 Thread 1 name: com.apple.uikit.eventfetch-thread Thread 1: 0 libsystem_kernel.dylib 0x00000002124c80f4 mach_msg_trap + 8 1 libsystem_kernel.dylib 0x00000002124c75a0 mach_msg + 72 2 CoreFoundation 0x00000002128c8914 __CFRunLoopServiceMachPort + 236 3 CoreFoundation 0x00000002128c3824 __CFRunLoopRun + 1360 4 CoreFoundation 0x00000002128c2fb4 CFRunLoopRunSpecific + 436 5 Foundation 0x000000021329195c -[NSRunLoop+ 31068 (NSRunLoop) runMode:beforeDate:] + 300 6 Foundation 0x00000002132917ec -[NSRunLoop+ 30700 (NSRunLoop) runUntilDate:] + 96 7 UIKitCore 0x000000023f050754 -[UIEventFetcher threadMain] + 136 8 Foundation 0x00000002133be4a0 __NSThread__start__ + 984 9 libsystem_pthread.dylib 0x00000002125552c0 _pthread_body + 128 10 libsystem_pthread.dylib 0x0000000212555220 _pthread_start + 44 11 libsystem_pthread.dylib 0x0000000212558cdc thread_start + 4 Thread 2 name: io.flutter.1.ui Thread 2: 0 libsystem_kernel.dylib 0x00000002124d2ee4 __psynch_cvwait + 8 1 libsystem_pthread.dylib 0x000000021254dcf8 _pthread_cond_wait$VARIANT$mp + 636 2 Flutter 0x0000000102156600 0x101ca8000 + 4908544 3 Flutter 0x0000000102123c8c 0x101ca8000 + 4701324 4 Flutter 0x000000010212f1ac 0x101ca8000 + 4747692 5 Flutter 0x000000010212fd84 0x101ca8000 + 4750724 6 Flutter 0x00000001022446a4 0x101ca8000 + 5883556 7 ??? 0x0000000106e81454 0 + 4410840148 8 ??? 0x0000000106e82890 0 + 4410845328 9 ??? 0x000000011c288c54 0 + 4767386708 10 ??? 0x0000000113155930 0 + 4615133488 11 ??? 0x0000000113155698 0 + 4615132824 12 ??? 0x0000000113154df0 0 + 4615130608 13 ??? 0x0000000112162220 0 + 4598407712 14 ??? 0x0000000112161d8c 0 + 4598406540 15 ??? 0x00000001141b9424 0 + 4632319012 16 ??? 0x0000000116c49d5c 0 + 4676951388 17 ??? 0x0000000116c485bc 0 + 4676945340 18 ??? 0x0000000112173194 0 + 4598477204 19 ??? 0x0000000112172f0c 0 + 4598476556 20 ??? 0x0000000113155930 0 + 4615133488 21 ??? 0x0000000113155698 0 + 4615132824 22 ??? 0x0000000113154df0 0 + 4615130608 23 ??? 0x0000000112162220 0 + 4598407712 24 ??? 0x0000000112161d8c 0 + 4598406540 25 ??? 0x0000000112161794 0 + 4598405012 26 ??? 0x00000001121613b0 0 + 4598404016 27 ??? 0x0000000112160fa8 0 + 4598402984 28 ??? 0x000000010a43c9c8 0 + 4467182024 29 ??? 0x000000010a43c730 0 + 4467181360 30 ??? 0x000000010a43bb78 0 + 4467178360 31 ??? 0x0000000113150ee4 0 + 4615114468 32 ??? 0x0000000113150d38 0 + 4615114040 33 ??? 0x000000010a43ca84 0 + 4467182212 34 ??? 0x000000010a43c730 0 + 4467181360 35 ??? 0x000000010a43bb78 0 + 4467178360 36 ??? 0x0000000113150ee4 0 + 4615114468 37 ??? 0x0000000113150d38 0 + 4615114040 38 ??? 0x0000000113150994 0 + 4615113108 39 ??? 0x0000000113150428 0 + 4615111720 40 ??? 0x00000001131502a4 0 + 4615111332 41 ??? 0x0000000106e81a54 0 + 4410841684 42 Flutter 0x000000010211f074 0x101ca8000 + 4681844 43 Flutter 0x000000010246b594 0x101ca8000 + 8140180 44 Flutter 0x000000010200c268 0x101ca8000 + 3555944 45 Flutter 0x0000000101ce3c84 0x101ca8000 + 244868 46 Flutter 0x0000000101ce5d80 0x101ca8000 + 253312 47 CoreFoundation 0x00000002128c9554 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28 48 CoreFoundation 0x00000002128c9284 __CFRunLoopDoTimer + 864 49 CoreFoundation 0x00000002128c8ab8 __CFRunLoopDoTimers + 248 50 CoreFoundation 0x00000002128c3a08 __CFRunLoopRun + 1844 51 CoreFoundation 0x00000002128c2fb4 CFRunLoopRunSpecific + 436 52 Flutter 0x0000000101ce5c5c 0x101ca8000 + 253020 53 Flutter 0x0000000101ce5404 0x101ca8000 + 250884 54 libsystem_pthread.dylib 0x00000002125552c0 _pthread_body + 128 55 libsystem_pthread.dylib 0x0000000212555220 _pthread_start + 44 56 libsystem_pthread.dylib 0x0000000212558cdc thread_start + 4 Thread 3 name: io.flutter.1.gpu Thread 3: 0 libsystem_kernel.dylib 0x00000002124c80f4 mach_msg_trap + 8 1 libsystem_kernel.dylib 0x00000002124c75a0 mach_msg + 72 2 CoreFoundation 0x00000002128c8914 __CFRunLoopServiceMachPort + 236 3 CoreFoundation 0x00000002128c3824 __CFRunLoopRun + 1360 4 CoreFoundation 0x00000002128c2fb4 CFRunLoopRunSpecific + 436 5 Flutter 0x0000000101ce5c5c 0x101ca8000 + 253020 6 Flutter 0x0000000101ce5404 0x101ca8000 + 250884 7 libsystem_pthread.dylib 0x00000002125552c0 _pthread_body + 128 8 libsystem_pthread.dylib 0x0000000212555220 _pthread_start + 44 9 libsystem_pthread.dylib 0x0000000212558cdc thread_start + 4 Thread 4 name: io.flutter.1.io Thread 4: 0 libsystem_kernel.dylib 0x00000002124c80f4 mach_msg_trap + 8 1 libsystem_kernel.dylib 0x00000002124c75a0 mach_msg + 72 2 CoreFoundation 0x00000002128c8914 __CFRunLoopServiceMachPort + 236 3 CoreFoundation 0x00000002128c3824 __CFRunLoopRun + 1360 4 CoreFoundation 0x00000002128c2fb4 CFRunLoopRunSpecific + 436 5 Flutter 0x0000000101ce5c5c 0x101ca8000 + 253020 6 Flutter 0x0000000101ce5404 0x101ca8000 + 250884 7 libsystem_pthread.dylib 0x00000002125552c0 _pthread_body + 128 8 libsystem_pthread.dylib 0x0000000212555220 _pthread_start + 44 9 libsystem_pthread.dylib 0x0000000212558cdc thread_start + 4 Thread 5 name: io.flutter.worker.1 Thread 5: 0 libsystem_kernel.dylib 0x00000002124d2ee4 __psynch_cvwait + 8 1 libsystem_pthread.dylib 0x000000021254dcf8 _pthread_cond_wait$VARIANT$mp + 636 2 libc++.1.dylib 0x0000000211aa9090 std::__1::condition_variable::wait+ 32912 (std::__1::unique_lock