AeroGear unified push notification
by Walto, David
Hi, I a new AeroGear unified push notification user. I am trying to create a simple push notification from a WebSphere java application.
I have created a couple of push notification classes to test (below) and both version I get the error:
SenderClient E Send did not succeed: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 64
I have the following jars for this application.
[cid:image001.png@01D0EB25.5E1F6EE0]
[cid:image003.png@01D0EB25.C89EC4F0]
Any direction how to resolve this would be greatly appreciated.
Thanks in advance.
David Walto
Senior Application Engineer | EMR Engineering and Integration
Baystate Health | Information & Technology
1550 Main Street, Springfield, MA 01199 | p: 413-794-0627 | f: 413-794-5570
----------------------------------------------------------------------
Please view our annual report at http://baystatehealth.org/annualreport
CONFIDENTIALITY NOTICE: This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents is prohibited. If you have received this communication in error, please reply to the sender immediately or by telephone at 413-794-0000 and destroy all copies of this communication and any attachments. For further information regarding Baystate Health's privacy policy, please visit our Internet site at http://baystatehealth.org.
7 years, 2 months
Unified push server development environment setup
by mo
Hi,
I'm trying to run the unified push server in a development environment to
troubleshoot and understand it better. I'm wondering if there is any
documentation available to assist me with setting up development environment
for it. I've looked though documents under "Contributing to AeroGear", but
I am in need of a more detailed guide. I'd like to get to a point where I
can run unified push, break point, and inspect variables, and so on.
So far I've managed to run 'mvn test' successfully on the unified push
server source code. I use Eclipse, so I wanted to import the project. I
get quite a lot of errors in doing so.
I am troubleshooting version 1.0.2. We use OpenShift to deploy the aerogear
server.
I appreciate any help. Thank you.
Michi Oshima
--
View this message in context: http://aerogear-users.1116366.n5.nabble.com/Unified-push-server-developme...
Sent from the aerogear-users mailing list archive at Nabble.com.
8 years, 1 month
categories have been hijacked
by Kelvin Lunsford
Setting "categories" in the push payload was working for android and ios in cordova push plugin 1.1.1.
For version 2.0.2 "categories" only works for ios.
It looks like "categories" is being hijacked in android for a GCM feature called "topics".
I liked "categories". I was using it. Now it's gone. GCM topics is not a drop-in replacement. It's not the same thing.
New features should get new names and new commands.
- Kelvin
8 years, 1 month
Aerogear Plugin issue - Notification opened metric
by Prasad, Ganesh
Hello
We were testing the usage of notification opened metric and our application is Cordova based
pushConfig: {
'pushServerURL': 'url',
'alias': 'app name',
'sendMetricInfo': 'true',
Below are the observation
1. Clicking on the push notification while the app is in the background increments the opened count
2. If the app is completely shut down, on receiving push notification :
* Clicking on the push notification starts the app but does not increment the opened count
Is there any fix available for #2 ?
Thanks
ganesh
8 years, 2 months
Wildfly port change and Internet requests
by Christopher Fahey
Hopefully someone can help me. I want to progress to the next step of
development by configuring our server to handle requests from over the
internet. Currently the server is only handling internal lan requests
but it is somewhat limiting. The port number of 8080 is not an
available port number for our IP address through the firewall so I
changed the Wildfly port number to 8623 and altered the firewall
accordingly. I can still access the AeroGear server on the local lan
IP using the new port number and I can access the Wildfly server over
the internet on port 8623 but when I try to access the application on
the port over the internet, I receive an error "Internal Server Error".
Does anyone know why I am receiving this error and how to fix it? I am
familiar with Tomcat but clueless about Wildfly and even more so on how
AeroGear works within Wildfly. Any help is appreciated.
Christopher Fahey
--
Christopher Fahey
DealerRewards, Inc.
Maryland Branch Office
(410) 924-3185
------------------------------------------------------------------------
This electronic message transmission contains information from
DealerRewards Inc. This message is confidential. It may also be
privileged or otherwise protected by work-product immunity or other
legal rules. If you have received it by mistake, please let us know by
email reply and delete it from your system; you may not copy this
message or disclose its contents to anyone.
DISCLAIMER: Since 2006, the U.S. Government has been monitoring all
internet communications. If you have information that you do not wish to
have monitored, please send it using regular postal services to the
address listed on our website.
------------------------------------------------------------------------
8 years, 3 months
Aerogear issue for project creation - Push plugin
by Prasad, Ganesh
n Aerogear Push, while project creation:
After executing following 5 basic commands, build fails with following error:
1. >cordova create MyApp
2. >cd MyCrdvaApp
3. >cordova platform add android
4. >cordova plugin add https://github.com/aerogear/aerogear-cordova-push.git
5. >cordova build android
FAILURE: Build failed with an exception.
* Where:
Script '~\WKSPS\MyCrdvaApp\platforms\android\aerogear-cordova-push\hellocordova-dependencies.gradle' line: 15
* What went wrong:
A problem occurred evaluating root project 'android'.
> Failed to apply plugin [id 'com.google.gms.google-services']
> Plugin with id 'com.google.gms.google-services' not found.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 4.376 secs
Thanks
ganesh
8 years, 3 months
Latin Characters in Push Notification
by LinkZ
Hi Folks,
I am trying to send push notifications using following code...
*curl:*
"curl -u "XXXXXXXXXXXX" -v -H "Accept: application/json" -H "Content-type:
application/json;charset=UTF-8" -X POST -d '{"alias" : ["12345678912"],
"ttl" : 3600, "message": { "alert":"Do it faça.", "sound":"default",
"badge":0, "idNotificacao":1}}' pushserver.pt/rest/sender
*My Handler:*
...
public class NotificationBarMessageHandler implements MessageHandler {
public static final int NOTIFICATION_ID = 1;
private Context context;
public static final NotificationBarMessageHandler instance = new
NotificationBarMessageHandler();
public NotificationBarMessageHandler() {
}
@Override
public void onMessage(Context context, Bundle bundle) {
this.context = context;
//Here I get the message without latin character.
//message = "Do it faa".
String message = bundle.getString(UnifiedPushMessage.ALERT_KEY);
NFPApplication application = (NFPApplication)
context.getApplicationContext();
application.addMessage(message);
notify(bundle);
}
...
}
*AndroidManifest*:
...
<receiver
android:name="org.jboss.aerogear.android.unifiedpush.gcm.AeroGearGCMMessageReceiver"
android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<action android:name="com.google.android.c2dm.intent.REGISTRATION"
/>
<category android:name="br.empresa.cliente.projeto" />
</intent-filter>
<meta-data
android:name="DEFAULT_MESSAGE_HANDLER_KEY"
android:value="br.empresa.cliente.projeto.handler.NotificationBarMessageHandler"
/>
</receiver>
...
*VMOptions*:
...
-Dfile.encoding=UTF-8
...
When the message is in English, latin charset, everything works. However,
when I try other languages or the character ç, they are deleted from the
string.
Note: When I test the iPhone everything works fine, but when I test on
Android have this problem to the same message.
It's encoded in utf-8, my database is MySQL deployed on a Linux server.
Thanks in advance.
--
View this message in context: http://aerogear-users.1116366.n5.nabble.com/Latin-Characters-in-Push-Noti...
Sent from the aerogear-users mailing list archive at Nabble.com.
8 years, 3 months
UnifiedPush Go Sender Library
by Sebastien Blanc
Hi folk,
A few days ago I started to play with Go and the result of that is a small
Sender Library for the UnifiedPush Server :
https://github.com/sebastienblanc/upsgosender
Usage is pretty simple :
criteria := &Criteria{Alias: []string{"seb", "bob"}}message :=
&Message{Alert: "hello from #golang sender"}unifiedMessage :=
&UnifiedMessage{Message: *message, Criteria: *criteria}settings :=
&Settings{
URL: "https://mypushserver.com/ag-push",
ApplicationID: "58f87fb7-829c-4c6f-a0eb-326d3017a94c",
MasterSecret: "3366736b-d52c-4115-87d3-c08095e87955"}sender :=
NewSender(*settings)
sender.send(*unifiedMessage)
Since, I'm a newbie on Go, PRs are mote than welcome to polish the code or
remove any anti-Go-patterns I could have used ;)
I still need to implement Proxy and Truststore support and add more test
but I think it's a good start.
Sebi
8 years, 3 months
Android push application crashed
by gprasad
Android app crashed when clicking on received push message, stack trace
below
E/AndroidRuntime(11239): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)
E/AndroidRuntime(11239): Caused by: java.lang.NullPointerException: Attempt
to invoke interface method 'int java.util.Map.size()' on a null object
reference
E/AndroidRuntime(11239): at
org.jboss.aerogear.cordova.push.Message.toBundle(Message.java:105)
E/AndroidRuntime(11239): at
org.jboss.aerogear.cordova.push.PushHandlerActivity.processPushBundle(PushHandlerActivity.java:63)
E/AndroidRuntime(11239): at
org.jboss.aerogear.cordova.push.PushHandlerActivity.onCreate(PushHandlerActivity.java:45)
E/AndroidRuntime(11239): at
android.app.Activity.performCreate(Activity.java:6289)
E/AndroidRuntime(11239): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
E/AndroidRuntime(11239): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2655)
--
View this message in context: http://aerogear-users.1116366.n5.nabble.com/Android-push-application-cras...
Sent from the aerogear-users mailing list archive at Nabble.com.
8 years, 3 months