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

How to update device token after analytics is initialized? #100

Open
ggirotto opened this issue Sep 12, 2024 · 1 comment
Open

How to update device token after analytics is initialized? #100

ggirotto opened this issue Sep 12, 2024 · 1 comment

Comments

@ggirotto
Copy link

In this PR #73 it seems that you guys added a new property to Configuration class which is token, but what happens if the device token is only acquired after the analytics was already initialized? Should we create a new instance of the analytics to replace the old now or use the solution proposed on this issue #29?

@edsonjab
Copy link
Contributor

hi @ggirotto we add token to change on any time on the execution process, to update the context once the Analytics was initialized you need to use the proposed solution because you can use the same instance of Analytics was declared at the beginning to update the context.

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