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

setIdentity(object) returns weird data, undocumented #138

Closed
barocsi opened this issue May 6, 2016 · 5 comments
Closed

setIdentity(object) returns weird data, undocumented #138

barocsi opened this issue May 6, 2016 · 5 comments

Comments

@barocsi
Copy link

barocsi commented May 6, 2016

Hello,

exactly, what kind of data should setIdentity function return? Seems that it stored something in relation to the first link generation (?)
I get this:

$identity_id: "252785992883276315"
$og_app_id: "1757534501136057"
$og_description: "***STRIPPED, BUT SOME OLD SHARING ITEMS DESCRIPTION ***"
$og_image_url: "***STRIPPED, BUT SOME OLD SHARING ITEMS IMAGE***"
$og_title: "***STRIPPED, BUT SOME OLD SHARING ITEMS TITLE***?"
$one_time_use: false
$state: "main.tabs.single"
$stateParams: "{"postId":"571c1d4ba5800ace7c9e4558"}"
~channel: "mobile"
~creation_source: 2
~feature: "share"
~id: "252787154801969859"
~stage: "post"
@renesansz
Copy link
Contributor

renesansz commented May 6, 2016

Hi @barocsi ,
It sets the identity of the user, this could be an email address, UUID, or Facebook ID.
It returns to you the generated data of the identity of the user, from the Branch.IO documentation:

  • $identity_id - Is the server-generated ID of the user identity, stored in sessionStorage.
  • ~feature - Is the type of the generated identity
  • ~channel - The device type used

I don't have an idea for the other returned parameters, but somehow those data are somewhat needed for the user identity.

@barocsi
Copy link
Author

barocsi commented May 6, 2016

Its then some sort of initial data, however seems to be weird and unexpected.

@renesansz
Copy link
Contributor

renesansz commented May 6, 2016

Yes, I think so. I wasn't able to really work with the SDK for the native library.
But somehow the data returned comes directly from the API itself, so I guess as long as it didn't give you an error, it's working as intended.

@aaustin
Copy link
Contributor

aaustin commented May 6, 2016

Hey @barocsi - I can answer this one. In the setIdentity call, we return the first link that a user clicked to refer them into an app. We consider this to be the original referring link and wanted to make the data available to use in product.

@barocsi
Copy link
Author

barocsi commented May 6, 2016

That was my tip, thanks a lot.

@barocsi barocsi closed this as completed May 6, 2016
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

3 participants