Skip to content

[@nativescript/contacts] loading large amount of contacts with image is very slow #621

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
fpaaske opened this issue Apr 23, 2025 · 0 comments
Assignees

Comments

@fpaaske
Copy link
Contributor

fpaaske commented Apr 23, 2025

I'm making an app where I need the contact list from the phone, including images.

I'm using @nativescript/contacts and Contacts.getAllContacts(['name', 'phoneNumbers', 'photo']).

This is painfully slow to load, especially on iPhones, when the number of contacts grows. 500 contacts with image can easily take 10-20 seconds to load depending on the device. If I remove the request for photo it becomes blazingly fast again.

Do you have any good tips on how to load the images in a faster manner?

This was first mentioned on Discord where @triniwiz indicated that there might be a way to fix this by re-writing a part of the plugin code, hence this ticket (no pressure 😄)

@fpaaske fpaaske changed the title [@nativescript/contacs] loading large amount of contacts with image is very slow [@nativescript/contacts] loading large amount of contacts with image is very slow Apr 23, 2025
@triniwiz triniwiz self-assigned this Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants