Skip to content
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

Store unique IDs back to the native Contacts store. #69

Merged
merged 4 commits into from
Jan 21, 2017

Conversation

schuyler
Copy link
Owner

In point of fact, store the unique ID as a URL address field of type "HelloAgain" in the corresponding native Contact record. This custom URL will actually be visible to the user, and be clickable once we get deep links into the app wired up in iOS.

The deep link takes the form: helloagain://to/first-last-abcd

The code currently writes back the unique deep link whenever a friend is toggled. Also, when contacts are imported, they're searched for missing deep links and the links are written back at that time, although this shouldn't really happen.

What's great about this is that now any aspect of a native contact record can change (aside from the HelloAgain deep link) and the contact's identity will still match up with their HelloAgain friend record -- even across devices (or even possibly platforms, when we get that far).

@obra!

In point of fact, store the unique ID as a URL address field of type
"HelloAgain" in the corresponding native Contact record. This custom URL
will actually be visible to the user, and be _clickable_ once we get
deep links into the app wired up in iOS.

The deep link takes the form: helloagain://to/first-last-abcd

The code currently writes back the unique deep link whenever a
friend is toggled. Also, when contacts are imported, they're searched
for missing deep links and the links are written back at that time,
although this shouldn't really happen.

What's great about this is that now any aspect of a native contact
record can change (aside from the HelloAgain deep link) and the
contact's identity will still match up with their HelloAgain friend
record -- even across devices (or even possibly platforms, when we get
that far).
@obra
Copy link
Collaborator

obra commented Jan 21, 2017

+1

…s reducer. It seems weird to put a side-effect in an action *creator* but I don't have better ideas.
@schuyler schuyler merged commit 8fad032 into master Jan 21, 2017
@schuyler schuyler deleted the schuyler-store-id branch January 21, 2017 09:54
@schuyler
Copy link
Owner Author

Closes #66

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

Successfully merging this pull request may close these issues.

2 participants