<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 28, 2015 at 5:25 AM, Erik Jan de Wit <span dir="ltr">&lt;<a href="mailto:edewit@redhat.com" target="_blank">edewit@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
We are going to add metric support to the cordova push plugin. This<br>
functionality was introduced in the 2.x version of the android push<br>
lib. The android 2.x version uses &#39;aar&#39; for packaging. This means the<br>
new version can only be used with cordova android platform 4.0 as that<br>
introduced &#39;aar&#39; framework support.<br>
<br>
Or we use a source include, we do that for the oauth2 plugin, it might<br>
also open the option to get inclusion into phonegap build as binary<br>
dependencies are not allowed there.<br>
<br></blockquote><div><br></div><div>I may be showing my Java bias but upgrading to Cordova 4 and leaning against the aar sounds the most &quot;correct&quot;.</div><div><br></div><div>However if doing a source include is not a maintenance nightmare (IE someone has to manually update the sources all the time) AND it gets us in phonegap&#39;s official packaging system then +1 to that.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
For the metrics in cordova we can make it super easy and fully<br>
automatic all you&#39;ll have to do is add &quot;sendMetricInfo&quot;: true in your<br>
pushConfig: </blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
var pushConfig = {<br>
   pushServerURL: &quot;<a href="http://localhost:8080/ag-push" target="_blank">http://localhost:8080/ag-push</a>&quot;,<br>
   sendMetricInfo: true,<br>
   android: {<br>
      senderID: &quot;&lt;senderID 123&gt;&quot;,<br>
      variantID: &quot;&lt;variantID e.g. 1234456-234320&gt;&quot;,<br>
      variantSecret: &quot;&lt;variantSecret e.g. 1234456-234320&gt;&quot;<br>
  },<br>
   ios: {<br>
      variantID: &quot;&lt;variantID e.g. 1234456-234320&gt;&quot;,<br>
      variantSecret: &quot;&lt;variantSecret e.g. 1234456-234320&gt;&quot;<br>
   }<br>
};<br>
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div>I thought that a requirement of metrics was that it is the developer who picks when to send them not the library? </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
--<br>
Cheers,<br>
       Erik Jan<br>
_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
</font></span></blockquote></div><br></div></div>