Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Already imported contact not removed fully from device #171

Closed
rhanesoghlyan opened this issue Sep 28, 2018 · 12 comments
Closed

Already imported contact not removed fully from device #171

rhanesoghlyan opened this issue Sep 28, 2018 · 12 comments

Comments

@rhanesoghlyan
Copy link

I think when importing data from device all contacts also saved in app-local storage.
How can I get new contact list ?

@janpio janpio added the support label Sep 28, 2018
@janpio
Copy link
Member

janpio commented Sep 28, 2018

What platform?
What are you doing exactly and what is happening that you do not expect?

@rhanesoghlyan
Copy link
Author

rhanesoghlyan commented Sep 28, 2018

In iOS and Android (iOS 6 and Samsung Galaxy s8).

  1. Run app and import all contact
  2. Close app
  3. Go to native contacts page
  4. Delete one of imported contacts
  5. Run app

When getting contact list from device already deleted contact will be imported again.

@rhanesoghlyan
Copy link
Author

In my Sony Xperia Z1 when deleting contact from native page it's show this popup
screenshot_2018-09-28-17-11-05

@rhanesoghlyan
Copy link
Author

For getting all contacts I'm using this method
this.contacts.find(['displayName'], {filter: ''});

@janpio
Copy link
Member

janpio commented Sep 28, 2018

Did the contact actually get deleted in the native app? Is it gone there?

@rhanesoghlyan
Copy link
Author

After deleting contact from contact list of device and after that again fetch list in app I can see deleted contact in my app.

@janpio
Copy link
Member

janpio commented Sep 28, 2018

I repeat: Did you confirm that the contact was actually and really deleted from the device?

@rhanesoghlyan
Copy link
Author

Yes its removed from device.

@janpio
Copy link
Member

janpio commented Sep 28, 2018

Does this only happen on devices where you get this popup on deleting the contact or on others as well?

@rhanesoghlyan
Copy link
Author

On all devices.

@Bramzor
Copy link

Bramzor commented Oct 11, 2018

@rhanesoghlyan: If you do a new find, you will get an updated list right? It is not that these contacts are saved locally, they are just still available in memory as doing a find is a heavy call which can take a lot of time and you dont want to do this every single time for every component in the UI.

I do not think this should be a problem, although you always have to do a find (with the specific id of that user) before doing any action as contact might be removed or updated in between else it might throw an error or even crash.

But I do not think you can expect that magically memory in your app gets updated when a contact is updated/removed in the native contacts app.

@timbru31
Copy link
Member

timbru31 commented Jan 9, 2023

We are archiving this repository following Apache Cordova's Deprecation Policy. We will not continue to work on this repository. Therefore all issues and pull requests are being closed. Thanks for your contribution.

@timbru31 timbru31 closed this as completed Jan 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants