npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

nativescript-gameanalytics

v3.0.1

Published

Official NativeScript SDK for GameAnalytics. GameAnalytics is a free analytics platform that helps game developers understand their players' behaviour by delivering relevant insights.

Downloads

11

Readme

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