[reports] Main Thread Checker: UI API called on a background thread: -[WKWebView evaluateJavaScript:completionHandler:]
PID: 20894, TID: 6519267, Thread name: (none), Queue name: com.apple.avfoundation.avasset.completionsQueue, QoS: 0
Backtrace:
4 GoogleInteractiveMediaAds 0x00000001048edce8 -[IMAWKWebView evaluateJavaScript:completionHandler:] + 220
5 GoogleInteractiveMediaAds 0x00000001048eeb4c -[IMAWebViewDispatcher sendMessage:] + 572
6 GoogleInteractiveMediaAds 0x00000001048ef768 -[IMAJavaScriptSession sendMessage:] + 140
7 GoogleInteractiveMediaAds 0x00000001048e82c4 -[IMAVideoDisplayWrapper sendMessageWithType:messageData:onChannel:] + 172
8 GoogleInteractiveMediaAds 0x00000001048e7e5c -[IMAVideoDisplayWrapper videoDisplay:didReceiveError:] + 280
9 GoogleInteractiveMediaAds 0x00000001048def44 -[IMAAVPlayerVideoDisplay assetLoader:didReceiveError:] + 132
10 GoogleInteractiveMediaAds 0x00000001048dca24 __32-[IMAAVAssetLoader loadMetadata]_block_invoke + 604
11 libdispatch.dylib 0x000000010681f1fc _dispatch_call_block_and_release + 32
12 libdispatch.dylib 0x000000010682077c _dispatch_client_callout + 20
13 libdispatch.dylib 0x0000000106828a34 _dispatch_lane_serial_drain + 716
14 libdispatch.dylib 0x000000010682973c _dispatch_lane_invoke + 412
15 libdispatch.dylib 0x0000000106833474 _dispatch_workloop_worker_thread + 1172
16 libsystem_pthread.dylib 0x00000001c5b25a98 _pthread_wqthread + 308
17 libsystem_pthread.dylib 0x00000001c5b2bdc4 start_wqthread + 4
Hi Logan,
Thank you for reaching out to us and for sharing your concern.
However, could you elaborate more or could you share some steps on how to replicate the issue that you have encountered?
I've tested the IMA SDK for iOS basic sample app and updated the SDK version to 3.9 as stated here in our Getting Started guide, and I was not able to reproduce the issue.
Let me know if you have further clarifications and I'll be glad to help.
Regards,
Sherwin Diesta
IMA SDK Team
Hi Logan,
Thank you for your response and for sharing this information.
I'm not sure how you implemented the IMAAdsManager destroy, but please note that this method together with the Ads loader contentComplete are being called during the initialization of the Ads Loader (please see the IMA SDK for iOS advance integration sample for your reference).
Hence, before making a new ad request, make sure to call these methods to set the SDK for the new ad request.
Regards,
Sherwin Diesta
IMA SDK Team
Hi Logan,
Yes, if you're going to make a new ad request after destroying the Ad manager.
The Ads loader contentComplete will help to set up the SDK for your new ad request and will make a signal to the SDK that the content has completed.
Regards,
Sherwin Diesta
IMA SDK Team