Reading the identity in the Branch Web SDK

244 views Asked by At

What is the way to read what identity Branch is currently set to?

data's result seems to stay the same both before and after setIdentity is called, I believe because it just shows you what init had called back with. So, I'm not sure what method to use to check this.

EDIT: Later it was discovered that setIdentity wasn't working because of an issue on Branch's end. After an email discussion with support we narrowed down the issue and they fixed it.

1

There are 1 answers

0
Alex Austin On BEST ANSWER

Unfortunately, there's not currently a method in the web SDK to read whether the identity is set. I just added a task to the backlog and we'll update this answer after we have one.

In iOS and Android, we've added methods to tell whether or not you've already identified a user.

Objective C:

- (BOOL)isUserIdentified;

Java:

isUserIdentified();