AeroDec server help
by Summers Pittman
Hey guys,
I'm trying to update the aerodoc Android cookbook example, but I can't get
the AeroDoc backend server running. Digging into the source it seems
pretty bitrotted (using picket link instead of keycloak, lucene doesn't
play nice with the wildfly docker image, dependencies are out of date, etc).
Who knows about it and can give me a hand some time?
8 years, 7 months
Unified Push, user-data field and Android push
by Summers Pittman
So I had a post on my Google+ (I know that was my reaction too) page from a
user who was having trouble with UPS, user-data, and Android. I'm not sure
WHERE his problem is, but I will describe it here and we can discuss
further.
Let's say we send the following to UPS using the sender API :
{
"message": {
"alert" : "Remote service failed. View FAQs.",
"sound": "default",
"badge": -1,
"user-data": {
"SXM": {
"CATEGORY" : "SERVICE",
"SERVICETYPE": "Remote",
"SRID": "BB4FC7F0-15E9-11E6-9F41-0050569C3256",
"APPCONTENT": "UNKNOWN",
"STATUS": "FAIL",
"STATUSCHANGE_DATETIME": "UNKNOWN",
"URL": "XYZABC.com"
}
}
}
}
Android will receive the following message bundle from Google :
Bundle[
{aerogear-push-id=3f2b9477-fc9e-463a-94d7-d62bf55706e1,
SXM={CATEGORY=SERVICE, SERVICETYPE=Remote,
SRID=BB4FC7F0-15E9-11E6-9F41-0050569C3256, APPCONTENT=UNKNOWN, STATUS=FAIL,
STATUSCHANGE_DATETIME=UNKNOWN, URL=XYZABC.com},
alert=Remote service failed. View FAQs.,
badge=-1,
sound=default,
collapse_key=do_not_collapse}
]
As we can see, several things have happened. 1) user-data has been rolled
up into a root element, and the SXM root object's JSON body has been
stripped of its jsonness. IDEALLY we would be able to keep the body of
userdata as a string for user's to handle themselves.
I THINK this is an issue with how UPS converts the message for sending to
GCM, but i haven't researched that far.
Summers
8 years, 7 months
Travis CI failing for android-pipe
by Matthias Wessendorf
Hi,
locally all works fine, otherwise the release plugin would not have allowed
me to stage (and release) the bits.
However, on Travis, I am getting a weird error from the
'com.simpligility.maven.plugins:android-maven-plugin' plugin:
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building AeroGear Android Pipe Test 3.0.0
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- android-maven-plugin:4.4.1:instrument (default-cli) @
aerogear-android-pipe-test ---
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 5.821 s
[INFO] Finished at: 2016-05-13T06:15:22+00:00
[INFO] Final Memory: 24M/491M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
com.simpligility.maven.plugins:android-maven-plugin:4.4.1:instrument
(default-cli) on project aerogear-android-pipe-test: Execution default-cli
of goal
com.simpligility.maven.plugins:android-maven-plugin:4.4.1:instrument
failed: java.io.FileNotFoundException:
/home/travis/build/aerogear/aerogear-android-pipe/aerogear-android-pipe-test/target/AndroidManifest.xml
(No such file or directory) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
and yes, locally there is the
'aerogear-android-pipe/aerogear-android-pipe-test/target/AndroidManifest.xml'
file in question.
Any ideas ?
--
Matthias Wessendorf
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf
8 years, 7 months
admin REST client for node
by Luke Holmquist
https://www.npmjs.com/package/unifiedpush-admin-client
I remember a little while back someone created an admin client in Java, so
i decided to start one in node.js
ATM for the 0.1.0 release, i've only implemented the CRUD for
applications, following these docs
https://aerogear.org/docs/specs/aerogear-unifiedpush-rest/#838429674
The only thing i need to do to get "authenitcated" with keycloak was to
switch direct access grants to on in the "unifiedpush-server-js" client.
it also assumes that you are using the coupled KC/UPS bundle. which i think
is the only way right now.
once they become decoupled, then i can modify the client accordingly.
The tests are currently just mocking what the ups would return. I would
like to get some integration tests setup, but i'm not to sure how to
automate the "turning on" of the direct access grants.
i could probably use docker for the sever setup
anyway, here it is :) and more functionality to come
-Luke
8 years, 7 months
deploy failure for Master
by Luke Holmquist
so i'm trying to deploy what is currently on master to wildfly 9(also tried
10) and i'm getting this error:
https://gist.github.com/lholmquist/6743191e4c4f225dac7e8e16e86f09fc
i've copied the h2 db deployment script to the wildly deployment
directory, manually copied the auth-server and ag-push war files to the
wildlfy deployment directory from their respective target directories,
started with "./bin/standalone.sh -c standalone-full.xml -b 0.0.0.0"
perhaps i'm missing a step?
8 years, 7 months