flurry / react-native-flurry-sdk

React Native Flurry SDK
Apache License 2.0
45 stars 13 forks source link

Reinitializing flurry on the fly #22

Closed pavermakov closed 4 years ago

pavermakov commented 4 years ago

Describe the bug This is not a bug, but rather a question. What would happen if I invoke Flurry.Builder() multiple times throughout the app with different api keys? Will flurry pickup the api key change and send events to a correct account?

This Bug is About Please choose the closest item by replacing [ ] with [x].

Platform Please choose the platform(s) that you are having the issue by replacing [ ] with [x].

Environment Please tell us the versions of SDKs you are using. If you are not sure about React Native version, you can run react-native --version under your project.

poting-oath commented 4 years ago

No, Flurry does not support multiple FlurryAgent initialization. When FlurryAgent.Builder() been called the second time, it will just return immediately. Therefore, the new API Key will not be reset.

With the following message in the adb log. "Invalid call to Init. Flurry is already initialized"

pavermakov commented 4 years ago

@poting-oath thanks!