Unofficial Amazon mobile analytics bindings for Haxe Android and iOS targets
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dependencies/samcodes-amazonmobileanalytics
extension/amazonmobileanalytics
ndll/iPhone
project
screenshots
.travis.yml
CHANGELOG.md
LICENSE
README.md
haxelib.json
include.xml
package.bat

README.md

Haxe Amazon Mobile Analytics

Travis Build Status License

Unofficial Amazon Mobile Analytics bindings for Haxe OpenFL Android and iOS targets.

Deprecation note - Amazon Mobile Analytics was superseded by Amazon Pinpoint.

Features

Supports

  • Automatically record key app usage stats.
  • Record custom events with attributes and metrics.
  • Global attributes and metrics.

Doesn't Support

  • Monetization events.

If there is something you would like adding let me know. Pull requests welcomed too.

Install

haxelib install samcodes-amazonmobileanalytics

Usage

On Android, define your app identifier and identity pool identifier in Project.xml:

<!-- Enter your app id and app signature here for Android! Enter your ids in the AmazonMobileAnalytics.init call on iOS -->
<setenv name="AmazonMobileAnalyticsAppId" value="long_hex_string_from_my_aws_console" />
<setenv name="AmazonMobileAnalyticsIdentityPoolId" value="long_hex_string_from_my_aws_console" />

After integrating and booting the app, you should see data appearing on the Amazon Mobile Analytics dashboards. From here you can create custom dashboards, or export the data and query it. Here it is in action:

Screenshot

Screenshot of demo app

Notes

Use #if (android || ios) conditionals around your imports and calls to this library for cross platform projects, as there is no stub/fallback implementation included in the haxelib.

If you need to rebuild the iOS or simulator ndlls navigate to /project and run rebuild_ndlls.sh.

License

The Amazon Mobile Analytics SDK included in this repository is copyright 2010-2016 Amazon.com, Inc. or its affiliates, and is licensed under the Apache License, Version 2.0.

Google Gson is Copyright 2008 Google Inc, and is released under the Apache License, Version 2.0.

The rest of this haxelib is provided under the MIT license and is copyright 2016 Sam Twidale.