Forked from jfpsf
Updated to be installable via plugman/cordova-cli and compatible with cordova 3.0
Included latest Flurry libraries (Android: 3.2.1, iOS: 4.2.2)
=====
Phonegap plugin for Flurry mobile analytics
You really need to be careful that you pass the correct values to the methods. In particular, all event parameters must be in an NSDictionary that only contains strings, and remember that in Objective C booleans are Yes and No.
Here's how to install the plugin:
- Register with Flurry and get an App key
- Install plugin with plugman or cordova-cli
- Call the startSession() method, with your app key, after the device is ready. Or you can add your flurry key to www/config.xml like this:
<!-- Flurry App Key -->
<preference name="com.flurry.app_key" value="FLURRY_APP_KEY" />
- Call the other Flurry methods as appropriate.
There are two ways to start a flurry session. One is by calling
flurry.startSession(flurryKey)
to start the flurry session programatically. The other one is to start the flurry session automatically on app startup.
To do that, all you have to do is to add the above preference to the config.xml file and turn on onload=true in the feature param. For example:
<feature name="Flurry">
<param name="ios-package" value="CDVFlurry" />
<param onload="true" />
</feature>
It will check if the flurry key preference exists. If it does, it will start the flurry session.