Send User Events to Gameball

Use our SDK to easily send your users event to Gameball to track user's progress and achievements.

The SDK provides wrappers that send events to Gameball. The received events are evaluated and counted toward the player's challenges achievement.

Import GameballSdk

import {GameballSdk} from 'react-native-gameball';

Sending event without metadata in the form {String: any}

GameballSdk.sendEvent({"review": {}})
.then(response => console.log(response)) // on success
.catch(error => console.log(error)) // on error

Sending event with different metadata in the form {String: {String: any}}

GameballSdk.sendEvent({
    "Buy": {         
     "Amount": "100",
      "Type": “Electronics”
     }}).then(response => console.log(response)) // on success
    .catch(error => console.log(error)) // on error

Refer to Events APIs in the API Reference section for more info.

Last updated