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

AppInsights is initialized twice which causes react native app to crash #49

Open
daidoo-mtn-gh opened this issue May 30, 2024 · 2 comments

Comments

@daidoo-mtn-gh
Copy link

daidoo-mtn-gh commented May 30, 2024

I am having a problem whereby appInsight is initialized twice in my react native app and it causes the app to crash

Can we have a check to determine if appInsight is already initialized. And or also, can we have a function that can manually destroy the instance created

@Karlie-777
Copy link
Contributor

you can call ai.core.isInitialized() or ai.appInsights.isInitialized() to get initialization status. And you can call ai.unload() to tear down any initialized instances.

@daidoo-mtn-gh
Copy link
Author

@Karlie-777 , I will check it out, thank you

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