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]: How do get current subscription session external_id/active tags or any other information attached to subscription? #134

Open
Virtouzo opened this issue Jan 8, 2024 · 1 comment

Comments

@Virtouzo
Copy link

Virtouzo commented Jan 8, 2024

How can we help?

How do get current subscription session external_id/active tags or any other information attached to subscription?

I have went through the source code and the documentation back and forth. The only mention of external id I see in the source code, is when logging in.

What I am trying to achieve, is that if I detect, that currently logged in user external_id doesn't match the one attached to subscription, I would initiate a logout and re-login.

Is that achievable?

@captain-avocado
Copy link

I can confirm this problem. I can't get user tags, although this method should exist according to docs.

@Virtouzo I don't understand your issue for sure, but as possible option, I can assume, that you can rely on other external state of your app which stores externalID. If your externalID is id of the user fetched from server, just watch for its changing and perform logout/login with onesignal SDK.

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