In iOS 17.2 we can start a live activity by push, and the document says:
When the system receives the ActivityKit push notification on a device, it starts a new Live Activity, wakes up your app, and grants it background run time to allow you to download assets that the Live Activity needs.
My problem is, in which callback can I be notified a live activity will be start by a push, so I can download some web contents such as images before the live activity be rendered.
Post
Replies
Boosts
Views
Activity
Incident Identifier: 1E726F51-A52F-49F8-BA7C-9283420CAA2B
Hardware Model: iPhone13,2
Version: 6.22.0 (202208011902)
AppStoreTools: 13F100
AppVariant: 1:iPhone13,2:15
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Date/Time: 2022-08-09 00:13:18.6024 +0800
Launch Time: 2022-08-09 00:12:22.6847 +0800
OS Version: iPhone OS 16.0 (20A5328h)
Release Type: Beta
Baseband Version: 3.06.01
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Kernel Triage:
VM - Compressor failed a blocking pager_get
VM - Compressor failed a blocking pager_get
VM - Compressor failed a blocking pager_get
VM - Fault hit memory shortage
Thread 0 name:
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000215908ba4 __abort_with_payload + 8
1 libsystem_kernel.dylib 0x000000021592abf4 abort_with_payload_wrapper_internal + 104 (terminate_with_reason.c:102)
2 libsystem_kernel.dylib 0x000000021592ab8c abort_with_reason + 32 (terminate_with_reason.c:116)
3 libobjc.A.dylib 0x00000001c898f85c _objc_fatalv(unsigned long long, unsigned long long, char const*, char*) + 116 (objc-errors.mm:199)
4 libobjc.A.dylib 0x00000001c898f7e8 _objc_fatal(char const*, ...) + 32 (objc-errors.mm:215)
5 libobjc.A.dylib 0x00000001c8962b50 weak_register_no_lock + 392 (objc-weak.mm:421)
6 libobjc.A.dylib 0x00000001c8967808 objc_storeWeak + 448 (NSObject.mm:365)
7 UIKitCore 0x00000001d2b1c168 _UIResponderForwarderWantsForwardingFromResponder + 736 (UITouch.m:185)
8 UIKitCore 0x00000001d2a312d0 __forwardTouchMethod_block_invoke + 44 (UIResponder.m:2141)
9 CoreFoundation 0x00000001cf51a34c NSSET_IS_CALLING_OUT_TO_A_BLOCK + 24 (NSSetHelpers.m:10)
10 CoreFoundation 0x00000001cf59ae94 -[__NSSetM enumerateObjectsWithOptions:usingBlock:] + 200 (NSSetM_Common.h:157)
11 UIKitCore 0x00000001d2bff474 forwardTouchMethod + 236 (UIResponder.m:2140)
12 UIKitCore 0x00000001d2af9028 -[UIWindow _sendTouchesForEvent:] + 356 (UIWindow.m:3159)
13 UIKitCore 0x00000001d2af85e8 -[UIWindow sendEvent:] + 3284 (UIWindow.m:3480)
14 UIKitCore 0x00000001d2af78a8 -[UIApplication sendEvent:] + 672 (UIApplication.m:12473)
15 UIKitCore 0x00000001d2af6f64 __dispatchPreprocessedEventFromEventQueue + 7084 (UIEventDispatcher.m:2375)
16 UIKitCore 0x00000001d2b3f270 __processEventQueue + 5632 (UIEventDispatcher.m:2684)
17 UIKitCore 0x00000001d3777880 updateCycleEntry + 168 (UIEventDispatcher.m:116)
18 UIKitCore 0x00000001d304dbb8 _UIUpdateSequenceRun + 84 (_UIUpdateSequence.mm:112)
19 UIKitCore 0x00000001d3683570 schedulerStepScheduledMainSection + 172 (_UIUpdateScheduler.m:987)
20 UIKitCore 0x00000001d368273c runloopSourceCallback + 92 (_UIUpdateScheduler.m:1079)
21 CoreFoundation 0x00000001cf5e5bd4 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 28 (CFRunLoop.c:1974)
22 CoreFoundation 0x00000001cf5f1f70 __CFRunLoopDoSource0 + 176 (CFRunLoop.c:2018)
23 CoreFoundation 0x00000001cf575e8c __CFRunLoopDoSources0 + 340 (CFRunLoop.c:2063)
24 CoreFoundation 0x00000001cf58b7d8 __CFRunLoopRun + 836 (CFRunLoop.c:2970)
25 CoreFoundation 0x00000001cf590b04 CFRunLoopRunSpecific + 612 (CFRunLoop.c:3390)
26 GraphicsServices 0x0000000213703360 GSEventRunModal + 164 (GSEvent.c:2196)
27 UIKitCore 0x00000001d2d9f484 -[UIApplication _run] + 888 (UIApplication.m:3728)
28 UIKitCore 0x00000001d2d9f0e8 UIApplicationMain + 340 (UIApplication.m:5318)
29 pinduoduo 0x0000000104b0afcc 0x104b04000 + 28620
30 dyld 0x00000002571c68f8 start + 2360 (dyldMain.cpp:1161)
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000008 x1: 0x0000000000000001 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x000000013b56d100 x5: 0x0000000000000080 x6: 0x000000000000000a x7: 0x0000000000000001
x8: 0x0000000000000020 x9: 0x0000000000000103 x10: 0x00000000cfc0304f x11: 0x0000000000003a80
x12: 0x00000000000007fd x13: 0x00000000fce01035 x14: 0x00000000fd001800 x15: 0x0000000000001800
x16: 0x0000000000000209 x17: 0x000000022a2697e8 x18: 0x0000000000000000 x19: 0x0000000000000080
x20: 0x000000013b56d100 x21: 0x0000000000000000 x22: 0x0000000000000000 x23: 0x0000000000000001
x24: 0x0000000000000008 x25: 0x00000002250b0e80 x26: 0x0000000000000005 x27: 0x0000000000000000
x28: 0x0000000000000000 fp: 0x000000016b2f9000 lr: 0x000000021592abf4
sp: 0x000000016b2f8fc0 pc: 0x0000000215908ba4 cpsr: 0x40001000
esr: 0x56000080 Address size fault
I'm experiencing UIDocumentPickerViewController issue on iOS 16.1 when setting modalPresentationStyle property. I set it to be UIModalPresentationFullScreen but the value keeps to be UIModalPresentationFormSheet.
Everything is going well on iOS 16.0 and below.