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

question: isLoggedIn flag. #60

Closed
jaanauati opened this issue Feb 9, 2022 · 1 comment
Closed

question: isLoggedIn flag. #60

jaanauati opened this issue Feb 9, 2022 · 1 comment

Comments

@jaanauati
Copy link

Withmparticle-web-sdk we can currently use user.isLoggedIn() to check whether a user is logged in or not; I dug into this repo's code but I couldn't find any equivalent function to check this.

Is this supported by react-native-mparticle or maybe we should rely on some alternative approach like checking for userIdentities.CustomerId as mentioned in the android docs (https://docs.mparticle.com/developers/sdk/android/javadocs/com/mparticle/identity/MParticleUserImpl.html#isLoggedIn())?

Thanks.

@BrandonStalnaker
Copy link
Contributor

Currently the React Native SDK doesn't support user.isLoggedIn() but, the alternative approach you suggested is what we would suggest to customers who want that functionality asap. In other words if you check the value of whatever you primarily identify your users by (Customer Id, Email, etc) and its null they are an anonymous user (ie not logged in).

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

2 participants