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
Many established connections to Apple servers
by benjaminfras
Hi,
we have an aerogear installation deployed on a EAP 6.4.11 domain mode. It is
working fine so far, however after some time we see plenty of open
connections to apple servers (17.188). Today we hit a peak with over 3000
open connections. It seems that each connection is tied to a separate
thread, thus we had over 3000 threads as well. This is when our monitoring
fired and our operation guy got alerted.
On average we're sending approx. 40 push messages every 5 minutes to both
android and ios devices.
This is a snippet of what the netstat output looks like:
Is this expected behavior? Is it possible to set a max limit or something
similar?
--
View this message in context: http://aerogear-users.1116366.n5.nabble.com/Many-established-connections-...
Sent from the aerogear-users mailing list archive at Nabble.com.
7 years, 6 months
AeroGear UnifiedPush Server 1.1.3 goes idle every couple of days
by Walto, David
We have an AeroGear UnifiedPush Server 1.1.3 that goes idle every couple of days. If a device tries to register when it's idle the registration fails. The only way I found to wake it up is to restart it. Is there something I can change to prevent it from going to the Idle state?
Thanks,
David Walto
Senior Application Engineer | EMR Engineering and Integration
Baystate Health | Information & Technology
1550 Main Street, Springfield, MA 01199
----------------------------------------------------------------------
Please view our annual report at http://www.bhannualreport.org
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 https://www.baystatehealth.org.
7 years, 9 months
onNotification not always triggered
by falconea
I have my onNotification function, integrated in my Framework 7 client app:
onNotification: function(message) {
mainView.router.loadContent($('#pay').html());
$('#iuv').html(message.payload.number);
//myApp.alert('number: ' + message.payload.number, 'Mobile');
}
The problem is that function is not triggered on all notifications. Sometime
nothing happens.
Metrics are not sent to Unifiedpush console too.
onDeviceReady: function() {
pushInit.receivedEvent('deviceready');
var pushConfig = {
pushServerURL: "http://10.1.42.249:8080/ag-push/",
sendMetricInfo: true,
android: {
senderID: "1.0",
variantID: "20010eaa-a3be-474a-84a9-e98fdf57e7f9",
variantSecret: "94706157-5189-437e-b9a0-3800c934ddea"
}
};
Do you have any idea to solve this problem?
--
View this message in context: http://aerogear-users.1116366.n5.nabble.com/onNotification-not-always-tri...
Sent from the aerogear-users mailing list archive at Nabble.com.
7 years, 9 months
Android SDK doesn't work, any way to debug?
by r00dY
Hi guys,
I've implemented aerogear push in Titanium app, iOS native app, so far so
good. Now need to integrate AG into Android and I'm struggling.
Steps I've done:
1. Set up project and app in Firebase console.
2. (tested push notifications by native Firebase SDK - they worked).
3. I add to gradle following stuff:
compile 'com.google.firebase:firebase-messaging:9.8.0'
compile 'org.jboss.aerogear:aerogear-android-push:4.1.0'
and use google-services plugin, version 3
4. I create Aerogear Android variant, set up Google API key (tried legacy
and new) and project ID from Firebase console (the ones that worked in a
native way).
5. I register for pushes using AG SDK and registration is OK (see new device
in admin panel).
6. I set up DEFAULT_MESSAGE_HANDLER_KEY variable.
7. I create message handler.
8. I send test push via "Send notification to this app" form. I set up text,
the rest of fields is left to "All".
9. I get callback that push notification is successfully sent.
10. Nothing happens on my device (tried Android 5, 6 and 7).
I was quite frustrated so I downloaded example project HelloPush
https://github.com/aerogear/aerogear-android-cookbook/tree/master/HelloPush,
created for it new app in Firebase console and set up all configuration data
from my AeroGear panel. Same thing happens.
Any idea what may be the reason or do you have any methods for more detailed
debugging like:
1. Debugging of internals in Aerogear SDK, some verbose logging etc.
2. Debugging what's going on between Aerogear and Firebase while sending
push? Because I'm not sure if it's SDK fault or a fault of communication
between Aerogear and Firebase.
I can't wait for your answers, best!
--
View this message in context: http://aerogear-users.1116366.n5.nabble.com/Android-SDK-doesn-t-work-any-...
Sent from the aerogear-users mailing list archive at Nabble.com.
7 years, 9 months
Aerodoc android client lat/long issue & updating agent status issue
by columfoskin
Hey all,
I am working on building a Node js version of the backend for the Aerodoc
application and have some questions if anyone can help it would be great.
Can anybody help me to understand when the lat/long pairs are sent from the
android device to the Aerodoc backend? I have spent some time debugging and
trying to figure this out - without much success.
I have been looking at the request sent from the android app on login and it
is not then. My guess from looking at the Java code is this happens when
when a HTTP PUT is called on the ’saleagents’ endpoint but I cannot
determine when that endpoint is hit (from looking at the code & debugging).
Also, from what I see, updates to the agents status are sending a POST to
the backend, and not a PUT and therefore hitting my POST endpoint - causing
issues. Is this expected behaviour?
Any insight or help appreciated.
Colum.
--
View this message in context: http://aerogear-users.1116366.n5.nabble.com/Aerodoc-android-client-lat-lo...
Sent from the aerogear-users mailing list archive at Nabble.com.
7 years, 10 months
Openshift memory and deployment problems
by Dariusz Skrzypoń
Hello,
We’ve been using aerogear-unified-push on openshift large gear for some time.
We have two problems, which I cannot find any answers for. I’m in no way experienced on this field
1) Application goes offline once in a while - it appears it uses whole instance’s memory after some time, causing OutOfMemory error. This happens once every 1-2 weeks for us. So, I figured - let’s workaround these memory problems by restarting the app once a while, however:
2) Restarting application doest work. After I run restart from openshift console - cartridge appears to be restarted, wildfly is running, however browsing to /ag-push results in 404 Not Found. I need to manually use rhc-port-forward, then go to wildfly admin console and redeploy artifacts by uploading/enabling them.
3) This might be related to “control restart” output:
[xxx.rhcloud.com bin]\> ./control restart
Restarting aerogear-push cart
Stopping aerogear-push cart
Sending SIGTERM to wildfly:462504 ...
Starting aerogear-push cart
Found 127.10.62.129:8080 listening port
Found 127.10.62.129:9990 listening port
/var/lib/openshift/xxx/aerogear-push/standalone/deployments /var/lib/openshift/xxx/aerogear-push/bin
/var/lib/openshift/xxx/aerogear-push/bin
CLIENT_MESSAGE: Artifacts in an unknown state: ./auth-server.war ./ag-push.war
Two war files in deployments folder are present, however they are in .undeployed status. Snapshots are not working for us either. The most important thing for us now, is to provide automatic means of restarting the cartridge, which would result in usable application.
7 years, 10 months