Posts

Post not yet marked as solved
0 Replies
1.3k Views
Hi,I'm adding a UIActivityViewController to my app (SwiftUI wrapping with UIViewControllerRepresentable). In testing, I've found a couple issues that I'm worried would cause a rejection. However, these issues also happen with Apple's News app, so I don't think they are my problem. But I wanted to get some sort of confirmation before submitting it.1. The Tesla app is installed on my phone, and that app is available as a target for users. If I select it, I get the following:2020-01-29 19:28:10.618571-1000 XXXXXX[2214:432284] [AXRuntimeCommon] AX Lookup problem - errorCode:1100 error:Permission denied portName:'com.apple.iphone.axserver' PID:2215 ( 0 AXRuntime 0x00000001b2ee23a0 905DC921-AFE6-3398-A0CF-AC3372C35897 + 267168 1 AXRuntime 0x00000001b2ea7164 _AXGetPortFromCache + 548 2 AXRuntime 0x00000001b2ea859c AXUIElementPerformFencedActionWithValue + 392 3 UIKit 0x00000001de7756f8 F5079CB4-6E07-3DFE-81CA-B8667B73F64C + 800504 4 libclang_rt.asan_ios_dynamic.dylib 0x000000010401bc18 __wrap_dispatch_async_block_invoke + 216 5 libdispatch.dylib 0x0000000104e71e1c _dispatch_call_block_and_release + 32 6 libdispatch.dylib 0x0000000104e7327c _dispatch_client_callout + 20 7 libdispatch.dylib 0x0000000104e75af0 _dispatch_queue_override_invoke + 924 8 libdispatch.dylib 0x0000000104e84aa0 _dispatch_root_queue_drain + 356 9 libdispatch.dylib 0x0000000104e8540c _dispatch_worker_thread2 + 144 10 libsystem_pthread.dylib 0x00000001a84af690 _pthread_wqthread + 216 11 libsystem_pthread.dylib 0x00000001a84b59e8 start_wqthread + 8 ) 2020-01-29 19:28:10.626535-1000 XXXXXXX[2214:432084] [core] SLRemoteComposeViewController: (this may be harmless) viewServiceDidTerminateWithError: Error Domain=_UIViewServiceErrorDomain Code=1 "(null)" UserInfo={Terminated=disconnect method}Is there a way to exclude certain 3rd-party apps using excludedActivityTypes? I tried several things similar to the below, to no avail:let excludedActivityTypes: [UIActivity.ActivityType]? = [UIActivity.ActivityType.init(rawValue: "com.tesla")]I see the same error dialog in Apple's News app if Tesla is selected as a target when sharing an article from News. The error dialog the user sees says the following:Error Please launch the Tesla app and select a vehicleSo, I guess Apple has the same problem and this is Tesla's issue?2. If I select certain apps (Fantastical is one) the UIActivityViewController is immediately dismissed and the target app is opened. If I then return to my app, I find that my app is frozen. The debug log shows the following:2020-01-29 19:43:52.908866-1000 XXXXXX[2252:440991] [Assert] Trying to dismiss the presentation controller while transitioning already. (<_UIPageSheetPresentationController: 0x118a31680>) 2020-01-29 19:43:52.937447-1000 XXXXXX[2252:440991] Null transitionViewForCurrentTransition block, aborting _scheduleTransition: 2020-01-29 19:43:53.617082-1000 XXXXXX[2252:440991] Can't end BackgroundTask: no background task exists with identifier 1 (0x1), or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug.Again, if I do the same thing from Apple's News app, the News app also freezes. So, again, I guess this is either a Fantastical bug, or an iOS bug, and not an issue with my app?Still, I'm worried that my app will be rejected if the reviewers try things like the above.Any advice?I looked around for something like includedActivityTypes: [UIActivity] in hopes I could limit sharing to AirDrop, Messages, Mail and Copy. But there doesn't seem to be a way to specify a limited number of destinations. I do know about the following, which doesn't help:let excludedActivityTypes: [UIActivity.ActivityType] = [UIActivity.ActivityType.postToWeibo, UIActivity.ActivityType.assignToContact, UIActivity.ActivityType.saveToCameraRoll, UIActivity.ActivityType.addToReadingList, UIActivity.ActivityType.postToFlickr, UIActivity.ActivityType.postToVimeo, UIActivity.ActivityType.postToTencentWeibo]Thanks!Allen
Posted Last updated
.