Skip to content

Sample Game

Gravitum edited this page Feb 3, 2017 · 8 revisions

Integration Testing

Initialize the Gravitum SDK

Make sure you have followed the procedure in Getting Started to initialize the Gravitum SDK.

Test Game

The Gravitum SDK comes with a test scene under the Plugins > Gravitum > xExamples > Scenes folder. It includes a small script that sends up a dummy event called "sample_event" and a dummy purchase of "coins" on button press. Gravitum-ExampleScene.jpg

Build & run this scene as a test game and run it on an android device. If you have initialized the SDK properly above, sample events will be sent to the server on button press.

You will see the following events on the Gravitum Admin Dashboard when you press the "Send Custom Event"

Gravitum-ExampleSceneEventsOk.jpg

At this point, the SDK is working silently under the hood and custom events and purchases are being sent to the server.

Next Step - Push Integration(Optional)

Gravitum uses its own platform to send push messages. Once you are seeing events arriving on the Gravitum admin dashboard, you can proceed to Gravitum Push Setup for push messaging.

If you do not have not setup Google Cloud Messaging(GCM) for your game previously, proceed to GCM Setup or if you have IOS proceed to [IOS Setup] (https://github.com/GravitumLabs/gravitum-unity-sdk/wiki/iOS-Platform-Setup)

Clone this wiki locally