1

I need to use gameanalytics library in my react-native project. I tried to use JS SDK by using npm install and importing, but it works only in debugging mode. when I deactivate debugging mode it gives me error, "getBrowserVersionString" undifined in not an object.

here is my code :

import gameanalytics from 'gameanalytics';
export default class App extends Component<Props> {
_runAnalytic = () => {
 gameanalytics.GameAnalytics.setEnabledInfoLog(true);
 gameanalytics.GameAnalytics.setEnabledVerboseLog(true);
 gameanalytics.GameAnalytics.initialize("xxx", "xxx");
 }
 componentDidMount(){
 this._runAnalytic()
 }
render() {
return (
 <View></View>
)
}
asked Aug 6, 2019 at 11:33

1 Answer 1

0

I work for GameAnalytics and have forwarded this to the JS SDK developers. I will be posting the solution here as soon as possible.

answered Aug 6, 2019 at 16:37
Sign up to request clarification or add additional context in comments.

2 Comments

Thanks a lot, I'm looking forward hearing from you.
I think this answer should be removed.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.