You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have embedded Flutter into our existing iOS application and are currently retrieving contacts. We handle permission requests on the native side and fetch contacts using the ContactsService package. The implementation is working fine, but we are encountering the following warning in Xcode when calling:
Warning: This method should not be called on the main thread as it may lead to UI unresponsiveness.
It seems that fetching contacts is being executed on the main thread, which could potentially cause performance issues. We need to ensure that this operation runs on a background thread to avoid UI freezes.
Please advise on the best approach to resolve this issue.
contacts_service: 0.6.3
The text was updated successfully, but these errors were encountered:
Hi Team,
We have embedded Flutter into our existing iOS application and are currently retrieving contacts. We handle permission requests on the native side and fetch contacts using the ContactsService package. The implementation is working fine, but we are encountering the following warning in Xcode when calling:
Iterable<Contact> contacts = await ContactsService.getContacts();
Warning:
This method should not be called on the main thread as it may lead to UI unresponsiveness.
It seems that fetching contacts is being executed on the main thread, which could potentially cause performance issues. We need to ensure that this operation runs on a background thread to avoid UI freezes.
Please advise on the best approach to resolve this issue.
contacts_service: 0.6.3
The text was updated successfully, but these errors were encountered: