Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229110

How to set a contact's id with the native contacts plugin?

$
0
0

Hi guys,

Just a quick question. In the docs for the native contacts plugin there’s a description for an id property on the IContactProperties object. I’d like to set the id before saving a contact to the address book so I ca look it up later on.

I can add a value to the object’s property like this:

contact.id = xxxxxxxx-xxxx-xxxx-xxxx

But when I read the saved contact back from the device’s address book the id has been set to an internal id which auto-increments.

Does this mean a contact’s id can’t be set? If so, does anyone have any other suggestions?


Viewing all articles
Browse latest Browse all 229110

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>