In our app clip, we are making an API call to fetch data which will be shown on UI. We get this API response within 2 secs. While we receive the API response, we are showing loading state.
Once we get the API response, app clip takes almost 25 secs to render the data received from API.
We have added some logging to understand the time & found that until below system events are completed, main thread is blocked which prevents updating the placeholder UI with actual data.
Does anybody faced this issue?
Once we get the API response, app clip takes almost 25 secs to render the data received from API.
We have added some logging to understand the time & found that until below system events are completed, main thread is blocked which prevents updating the placeholder UI with actual data.
Code Block 2020-07-29 13:10:11 +0000: Created MyViewProvider. Time taken 0.00256502628326416 2020-07-29 18:40:16.754090+0530 MyAppClip[17964:1434520] HALCADClient::ConnectToServer: failed to find the AHS sub-server port, Error: 0x10000004 2020-07-29 18:40:21.754879+0530 MyAppClip[17964:1434520] HALCADClient::ConnectToServer: failed to find the AHS sub-server port, Error: 0x10000004 2020-07-29 18:40:21.755091+0530 MyAppClip[17964:1434520] HALDefaultDevice::Initialize: couldn't add the default input device listener, Error: 268435460 (\^P) 2020-07-29 18:40:26.755403+0530 MyAppClip[17964:1434520] HALCADClient::ConnectToServer: failed to find the AHS sub-server port, Error: 0x10000004 2020-07-29 18:40:26.755745+0530 MyAppClip[17964:1434520] HALDefaultDevice::Initialize: couldn't add the default output device listener, Error: 268435460 (\^P) 2020-07-29 18:40:31.756327+0530 MyAppClip[17964:1434520] HALCADClient::ConnectToServer: failed to find the AHS sub-server port, Error: 0x10000004 2020-07-29 18:40:31.756658+0530 MyAppClip[17964:1434520] HALDefaultDevice::Initialize: couldn't add the default system output device listener, Error: 268435460 (\^P) 2020-07-29 18:40:36.757257+0530 MyAppClip[17964:1434520] HALCADClient::ConnectToServer: failed to find the AHS sub-server port, Error: 0x10000004 2020-07-29 18:40:36.757528+0530 MyAppClip[17964:1434520] HALDefaultDevice::Initialize: couldn't add the default shared output device listener, Error: 268435460 (\^P) 2020-07-29 18:40:36.758519+0530 MyAppClip[17964:1434520] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x6000008d8f40> F8BB1C28-BAE8-11D6-9C31-00039315CD46 2020-07-29 18:40:36.759164+0530 MyAppClip[17964:1434520] AudioObjectSetPropertyData: no object with given ID 0 2020-07-29 18:40:36.759369+0530 MyAppClip[17964:1434520] 83: Failed to set processVolumeScalar on device. Error: 560947818 2020-07-29 13:10:36 +0000: Created AnotherViewProvider. Time taken 25.097121953964233
Does anybody faced this issue?