[aerogear-dev] Android 2.x and cordova

Erik Jan de Wit edewit at redhat.com
Thu May 28 05:25:39 EDT 2015


Hi,

We are going to add metric support to the cordova push plugin. This
functionality was introduced in the 2.x version of the android push
lib. The android 2.x version uses 'aar' for packaging. This means the
new version can only be used with cordova android platform 4.0 as that
introduced 'aar' framework support.

Or we use a source include, we do that for the oauth2 plugin, it might
also open the option to get inclusion into phonegap build as binary
dependencies are not allowed there.

For the metrics in cordova we can make it super easy and fully
automatic all you'll have to do is add "sendMetricInfo": true in your
pushConfig:

var pushConfig = {
   pushServerURL: "http://localhost:8080/ag-push",
   sendMetricInfo: true,
   android: {
      senderID: "<senderID 123>",
      variantID: "<variantID e.g. 1234456-234320>",
      variantSecret: "<variantSecret e.g. 1234456-234320>"
  },
   ios: {
      variantID: "<variantID e.g. 1234456-234320>",
      variantSecret: "<variantSecret e.g. 1234456-234320>"
   }
};

-- 
Cheers,
       Erik Jan


More information about the aerogear-dev mailing list