yandexmobile / react-native-appmetrica

React Native bridge to the AppMetrica on both iOS and Android.
MIT License
52 stars 132 forks source link

Which API key is to be used? #29

Closed nikitawolfik closed 4 years ago

nikitawolfik commented 4 years ago

In the application page at appmetrica.yandex.ru/application/edit?appId=${appId} I have 2 API keys - API key for SDK and Post API key.

Which one is to be used with AppMetrica.activateWithApiKey?

Also, is it enough to run the above code once the application is initialized or do I need to include that every time I log an event through AppMetrica?

Thank you

NesterovichAlexey commented 4 years ago

Hi. You need to use API key for SDK. It is enough to run once after initializing the application

nikitawolfik commented 4 years ago

Great, thanks!