Issues with Aerogear on Cordova
by Miguel Lemos
Hello,
I'm still struggling, for saying the least, with Aerogear documentation in
order to make a Cordova / Android app receive push notifications.
Amazingly one of the most unexpected issues has been with the correct
string to use on URLs to register or sending the notifications.
Examples given by documentation:
Openshift:
curl -u "{PushApplicationID}:{MasterSecret}"
-v -H "Accept: application/json" -H "Content-type: application/json"
-X POST
-d '{
"someKey":"someValue",
"alert":"HELLO!",
"sound":"default",
"badge":7,
"simple-push":"version=123"
}'
http://SERVER:PORT/CONTEXT/rest/sender/broadcast
Aerogear:
curl -3 -u "{pushApplicationID}:{masterSecret}"
-v -H "Accept: application/json" -H "Content-type: application/json"
-X POST -d '{"message": {"alert":"AeroGear UnifiedPush and Apache
Cordova 3.0.6", "badge":1}}'
https://SERVER:PORT/CONTEXT/rest/sender
How the above examples, apparently mean that, in my case, I must use
something like: https://aerogear-metalpush.rhcloud.com/rest/sender
maybe is very obvious for someone inside Aerogear lingo, but not at all for
me...
Anyway, after I managed to overcome this, the answer I get from the server
is this one (stripped from more irrelevant parts):
> POST /rest/sender HTTP/1.1
> Authorization: Basic
MDBhMjFjZTMtYTdkOS00YzhjLWI1ODMtOWYwMjEwYTYzNGU1Ojk0MTE4NmIzLWVjNmEtNGY0OC1iMjZiLTJkMDYxZWIyM2Q5Yg==
> User-Agent: curl/7.30.0
> Host: aerogear-metalpush.rhcloud.com
> Accept: application/json
> Content-type: application/json
> Content-Length: 50
>
} [data not shown]
* upload completely sent off: 50 out of 50 bytes
< HTTP/1.1 200 OK
< Date: Tue, 18 Feb 2014 20:58:18 GMT
* Server Apache-Coyote/1.1 is not blacklisted
< Server: Apache-Coyote/1.1
< Content-Type: application/json
< Content-Length: 13
< Vary: Accept-Encoding
<
{ [data not shown]
100 63 100 13 100 50 11 44 0:00:01 0:00:01 --:--:--
44Job submitted
* Connection #0 to host aerogear-metalpush.rhcloud.com left intact
As far as I can guess, this means that the request was accepted.
Nevertheless, I receive nothing on the client's side.
On my phone the successHandler function throws a success message, meaning
that the equipment has managed to register at the service.
And my code to receive the notifications is the same given in some examples:
function onNotification(e) {
alert(e.alert);
)
But nothing happens, tough. Thanks for giving me some clues to solve this.
Miguel
10 years, 5 months
Simplify Security of AeroDoc
by Sebastien Blanc
Hi All !
I'm currently working on APGUSH-810[1] which consist in removing the
dependency we still had on the deprecated aerogear-security project (RIP my
friend).
But now, if I want to keep AeroDoc, feature equal as before, I have to add
a LOT of code around security (to handle role, annotations etc ...).
AeroDoc is already quite complex and time consuming to maintain and the
core scope is not security but advanced Push.
So ... What I would like to propose is to keep only the authentification
(log in) and remove all the role handling part to simplify it.
The only effect that this will introduce, is that a logged in user can also
access the admin to create leads.
Wdyt ?
Sebi
[1] https://issues.jboss.org/browse/AGPUSH-810
10 years, 5 months
iOS meeting
by Corinne Krych
Hello iOS lovers,
Let’s make a point we’re we are for July release and discuss 2.0 for September.
We'll use our usual Tuesday slot. See you Tuesday 22nd July at 2pm (CEST - UTC + 2hours). Here is a proposal agenda:
http://oksoclap.com/p/aerogear_ios_22July2014
Feel free to add topics you would like to discuss.
See you all Tuesday!
++
Corinne
10 years, 5 months
Authentication and Modularization
by Summers Pittman
There's an open PR for the modularization of the Authentication APIs
open on aerogear-android right now. [1]
The Goal of this PR is, when we break the library into modules, we don't
have circular dependencies between Authentication, Authorization, and
Pipes. The PipeModule has been created for this purpose.
Pipe module defines several points in the lifecycle of a request that a
module can provide information to or edit. Currently this is based very
heavily on the Authenticationmodule and AuthorizationModule classes.
To get an idea of the idea I have for its end user usage, check
Pipeline2 class and tests in my aerogear-android repo [2].
wdyt?
1) https://github.com/aerogear/aerogear-android/pull/155
2)
https://github.com/secondsun/aerogear-android/blob/5095663fd216fe631545a1...
--
Summers Pittman
>>Phone:404 941 4698
>>Java is my crack.
10 years, 5 months
Use Case: Geo Location Pushes
by Chau Thai
Hello dear developers,
We would like to build a push service triggered by the location of
users. We have build a service with which users can save notes on a map.
To inform other users of the creation of the note, we want to send all
users in a given radius a push notification.
The relevance of his current location is very important to fullfil this
scenario.
It would really help us if you could implement a feature to save the
current geo location of the user via the existing register method.
Thanks in advance
Chau/Cydmax
--
Chau Thai
BLIPhead GmbH
Paradiesstr. 9
80538 München
Tel +49 89 21111069
Fax +49 89 21111061
Mobil +49 176 70660664
chau(a)bliphead.com
www.spreya.com
Geschäftsführer: Michael Mühlberger
Amtsgericht München, HRB 190699
10 years, 5 months
0.2.3 release (was Re: Aerogear Test BOM updates)
by Matthias Wessendorf
Hey Karel,
here is the staging repo:
http://repository.jboss.org/nexus/content/repositories/jboss_releases_sta...
please let me know if we can ship it to maven central
-M
On Thu, Jul 17, 2014 at 1:47 PM, Matthias Wessendorf <matzew(a)apache.org>
wrote:
>
>
>
> On Thu, Jul 17, 2014 at 1:42 PM, Karel Piwko <kpiwko(a)redhat.com> wrote:
>
>> Hi,
>>
>> I've updated test dependencies in Aerogear Test BOM,
>> https://github.com/aerogear/aerogear-parent/pull/10. It's time for QE
>> to maintain dependency versions at the same place ;-)
>>
>
>
> awesome!
>
>
>>
>> While this does not represent a full set of dependencies we use yet, it
>> would be handy to have it in 0.2.3 or 0.3.0 release of Aerogear BOM.
>>
>> Is there such release planned?
>>
>
> sure, we can release what ever version number you want :-)
>
>
>>
>> Thanks,
>>
>> Karel
>>
>> _______________________________________________
>> aerogear-dev mailing list
>> aerogear-dev(a)lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>
>
>
>
> --
> Matthias Wessendorf
>
> blog: http://matthiaswessendorf.wordpress.com/
> sessions: http://www.slideshare.net/mwessendorf
> twitter: http://twitter.com/mwessendorf
>
--
Matthias Wessendorf
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf
10 years, 5 months
Get all open Pull Requests for an org
by Sebastien Blanc
Hi All,
This is a bit off topic but , IMO, can be useful to the project.
I have been looking for a way to get all the Open Pull Requests that are
open for the AeroGear org, since I could not really find the tool I was
looking for I created one :)
http://myopenprs-sblanc.rhcloud.com/
It's a small app that will retrieve all the open PRs for an GH org or a GH
user. Just type "aerogear" and hit search and all the open PRs will be
retrieved.
For those interested, under the hood, it is a Vert.x App, using the Event
Bus to stream the open PRs back to the Browser.
Have fun !
Sebi
ps : no results returned ? Could be that the rate limit of the github API
(5000 req/hour) has been reached, please wait a bit before retrying.
10 years, 5 months