<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"><<a href="mailto:edewit@redhat.com" target="_blank">edewit@redhat.com</a>></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 'aar' for packaging. This means the<br>
new version can only be used with cordova android platform 4.0 as that<br>
introduced 'aar' 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 "correct".</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'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'll have to do is add "sendMetricInfo": 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: "<a href="http://localhost:8080/ag-push" target="_blank">http://localhost:8080/ag-push</a>",<br>
sendMetricInfo: true,<br>
android: {<br>
senderID: "<senderID 123>",<br>
variantID: "<variantID e.g. 1234456-234320>",<br>
variantSecret: "<variantSecret e.g. 1234456-234320>"<br>
},<br>
ios: {<br>
variantID: "<variantID e.g. 1234456-234320>",<br>
variantSecret: "<variantSecret e.g. 1234456-234320>"<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>