<div dir="ltr">Marc!<div><br></div><div>nice seeing you here :-) </div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 9, 2013 at 3:37 PM, Marc Sluiter <span dir="ltr">&lt;<a href="mailto:marc@slintes.net" target="_blank">marc@slintes.net</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi all,<br>
<br>
I&#39;m a Java and Android developer from Germany, Münster area. Matze pointed me to<br>
the aerogear-android framework and unified push, so I was curious and wanted to<br>
give it a try.<br>
Until it worked I had some little issues, which I want to share, maybe it helps<br>
to improve documentation, and I was not sure if I should just start a pull<br>
request about it...<br>
<br>
I started with forking and cloning aerogear-android,<br>
aerogear-unified-push-server and PushEEDemo to my local development environment.<br>
<br>
For aerogear-android I followed the instructions on github and on<br>
<a href="http://aerogear.org/docs/guides/GetStartedAndroidIntellij/" target="_blank">http://aerogear.org/docs/guides/GetStartedAndroidIntellij/</a>.<br>
Worked nice, I even didn&#39;t have to uncomment the extra modules for the<br>
maven-android-sdk-deployer, after updating all libs in the Android SDK Manager<br>
it just worked.<br>
The problem with &quot;Could not find tool &#39;aapt&#39;&quot; was solved by updating the<br>
android-maven-plugin to version 3.6, so also no need to create a link to it. But<br>
then it was missing the platform version, so my pom looks like this now:<br>
<br>
&lt;plugin&gt;<br>
   &lt;groupId&gt;com.jayway.maven.plugins.android.generation2&lt;/groupId&gt;<br>
   &lt;artifactId&gt;android-maven-plugin&lt;/artifactId&gt;<br>
   &lt;version&gt;3.6.0&lt;/version&gt;<br>
   &lt;configuration&gt;<br>
     &lt;sdk&gt;<br>
       &lt;platform&gt;17&lt;/platform&gt;<br>
     &lt;/sdk&gt;<br>
     &lt;undeployBeforeDeploy&gt;true&lt;/undeployBeforeDeploy&gt;<br>
   &lt;/configuration&gt;<br>
   &lt;extensions&gt;true&lt;/extensions&gt;<br>
&lt;/plugin&gt;<br>
<br>
I also had to increase the version number of the support lib:<br>
<br>
&lt;dependency&gt;<br>
   &lt;groupId&gt;android.support&lt;/groupId&gt;<br>
   &lt;artifactId&gt;compatibility-v4&lt;/artifactId&gt;<br>
   &lt;version&gt;13&lt;/version&gt;<br>
&lt;/dependency&gt;<br>
<br>
Finally I had to add 2 lines in proguard.cfg in order to let maven build<br>
successfully:<br>
<br>
-dontwarn android.support.**<br>
-dontwarn com.google.android.gms.**<br>
<br>
<br>
The aerogear-unified-push-server did run out of the box. But when I followed the<br>
instructions on <a href="http://aerogear.org/docs/specs/aerogear-server-push/" target="_blank">http://aerogear.org/docs/specs/aerogear-server-push/</a>, I always<br>
got something like &quot;Authorization failed&quot; when trying to register a push<br>
application. I found on the github page that I have to login and use cookies<br>
with the curl requests, with that it worked.<br>
But then I got auth errors when the PushEEDemo app tried to register on the<br>
unified push server. Finally I got the hint from Matze to use the<br>
&quot;quickstart-base&quot; branch of the server, which skips authorization. With that I</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

successfully sent a notification to my Nexus 4 :) Maybe it would useful to point<br>
to that branch in the docs.<br></blockquote><div><br></div><div><br></div><div><div>right - there are PRs for doc updates already :)</div><div><a href="https://github.com/aerogear/aerogear.org/pull/96" target="_blank">https://github.com/aerogear/aerogear.org/pull/96</a><br>
</div><div><a href="https://github.com/aerogear/aerogear.org/pull/97" target="_blank">https://github.com/aerogear/aerogear.org/pull/97</a><br></div><div><br></div><div>Adding auth/http basic to AGDroid is also our radar:</div>
<div><a href="https://issues.jboss.org/browse/AGDROID-53">https://issues.jboss.org/browse/AGDROID-53</a><br></div></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<br>
<br>
Last but not least I wanted to test it on an older device with Android 2.3.7.,<br>
for that I had to change the manifest of the PushEEDemo app. I already started a<br>
pull request about it (since it does not seem to be an official aerogear repo ;)<br>
): <a href="https://github.com/secondsun/PushEEDemo/pull/1" target="_blank">https://github.com/secondsun/PushEEDemo/pull/1</a>. With that changes it worked, too.<br>
<br>
<br>
When I have some time, I will have a look into the other features of Aerogear<br>
too, interesting project :)<br></blockquote><div><br></div><div style>thanks for the detailed analysis. Next beer (@JUG_MS) is on me!</div><div style><br></div><div style>-Matthias</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<br>
Thx for reading this far &amp; greetings,<br>
<br>
Marc<br>
@slintes<br>
<br>
<br>
<br>
_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">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>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Matthias Wessendorf <br><br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>

twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div></div>