Question
How to relink my apps internal data to the new local contacts database, after getting a new phone or after factory resetting the phone?
Informations
My app uses the phones contacts and links all it's internal data to the contacts via the id.
After the user factory resets the phone or gets a new phone, normally the first thing they do is syncing there contacts with google again. The result is a new local contacts database with NEW IDs, so all my internal linkings to this contacts are broken.
Is there a way to restore them? Currently I offer an export/import solution that tries to rematch the contacts based on name + numbers, but I'm interested if there is another way, a better way that always works...