Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Tw1ddle/samcodes-amazonmobileanalytics

Repository files navigation

Haxe Amazon Mobile Analytics

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

Don't use this, it's outdated. 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.

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.