Haxe Amazon Mobile Analytics
Unofficial Amazon Mobile Analytics bindings for Haxe OpenFL Android and iOS targets.
Deprecation note - Amazon Mobile Analytics was superseded by Amazon Pinpoint.
- Automatically record key app usage stats.
- Record custom events with attributes and metrics.
- Global attributes and metrics.
- Monetization events.
If there is something you would like adding let me know. Pull requests welcomed too.
haxelib install samcodes-amazonmobileanalytics
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:
#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
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.