nativescript-gameanalytics
TypeScript icon, indicating that this package has built-in type declarations

3.0.1 • Public • Published

npm npm MIT license

NativeScript-GameAnalytics

NativeScript plugin for the GameAnalytics SDK for Android and iOS.

Native Libraries:

Android iOS
GA-SDK-ANDROID GA-SDK-IOS

Installation

From your command prompt/terminal go to your app's root folder and execute:

NativeScript (only 3.0+)

tns plugin add nativescript-gameanalytics

Usage

import {
    GameAnalyticsSDK as GameAnalytics,
    EGAResourceFlowType,
    EGAProgressionStatus,
    EGAErrorSeverity,
    EGAGender
} from 'nativescript-gameanalytics';

// To initialize the SDK...

public initializeGameAnalytics() {
    GameAnalytics.initialize("[INSERT_GAME_KEY]", "[INSERT_SECRET_KEY]");
}

// To send events...
public sendEvent() {
    GameAnalytics.addDesignEvent({
        eventId: "design:event"
    });
}

For more documentation click here.

Changelog

3.0.1

  • added session_num to init request

3.0.0

  • Remote Config calls have been updated and the old calls have deprecated. Please see GA documentation for the new SDK calls and migration guide
  • A/B testing support added

2.1.3

  • removed enum from declaration file

2.1.2

  • dependencies updated

2.1.1

  • declaration file fixed

2.1.0

  • added enable/disable event submission function

2.0.4

  • updated nativescript version

2.0.3

  • small fixes to android

2.0.2

  • fixed business event validation

2.0.1

  • small bug fixes

2.0.0

  • added comand center functionality

1.1.8

  • updated native libs

1.1.7

  • reversed to tns-core-modules 3.4.0

1.1.6

  • another fix to gradle file

1.1.5

  • another fix to gradle file

1.1.4

  • small fix to gradle file

1.1.3

  • README updated

1.1.2

  • fixed specific method for android that kept app hanging

1.1.1

  • small fix to declaration file

1.1.0

  • added GA beta functionality from native libs

1.0.16

  • updated native libraries

1.0.15

  • fixed session length bug
  • fixed not allowing to add events when session is not started

1.0.14

  • changed to use pod file for ios platform

1.0.13

  • updated google play services compiled with native android library

1.0.12

  • updated native libraries

1.0.11

  • updated native ios header for missing function (ios)

1.0.10

  • small bug fix in initialize function for ios (ios)

1.0.9

  • fixed version sent with events

1.0.8

  • fixed setting sdk version when initializing

1.0.7

  • updated version validator in native libraries

1.0.6

  • added sdk version to tracking

1.0.5

  • bug fix initialize for android

1.0.4

  • updated native ios library version used

1.0.3

  • updated native android library version used

1.0.2

  • small fix for clearing current custom dimension for iOS

1.0.1

  • readme updated

1.0.0

  • initial commit

Package Sidebar

Install

npm i nativescript-gameanalytics

Weekly Downloads

0

Version

3.0.1

License

MIT

Unpacked Size

36.2 kB

Total Files

11

Last publish

Collaborators

  • gameanalytics