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, 2 months
notifications overriding previus ones, Cordova Android
by Jesús Martín González
Hi all,
How can I show all the notifications received?, not only the last one.
Something like whatsapp notifications, when there are 2 notifications, both
are showed at notifications panel and not only the last one.
Using Cordova Android and your Pushplugin
thanks
--
Jesús Martín Gonzalez
Tel: +34 654420529
9 years, 4 months
cordova plugin on android platform not working
by Rodrigo Del Canto
Hello guys,
I trying to test the Aerogear push plugin for cordova with android but is
not working.
this is my configuration:
1. mac os x
2. $ cordova -v
5.1.1
3. cordova plugin add https://github.com/aerogear/aerogear-cordova-push.git
4. I'm importing the android project to eclipse to build it there.
and I get this dependencies errors:
- The import android.support cannot be resolved
- The import org.jboss.aerogear.android cannot be resolved
[image: Inline image 1]
Any ideas?
Thanks a lot!
Rodrigo.
9 years, 4 months
push.unregister() not working Cordova 5.0.0 for Android
by Jesús Martín González
Hi all,
I'm starting to use pushplugin for Cordova android and i have followed all
instrucctions and examples available at:
https://aerogear.org/docs/specs/aerogear-cordova/Push.html and other pages.
I can receive notifications but when I try to unregister the device an
error message appear: "Seems this device is already unregistered" and it is
wrong because I am still receiving notifications.
I am using cordova 5.0.0 and deploying to android, i am using this for
unregister:
push.unregister(successHandler, errorHandler);
function successHandler() {
alert("notificaciones desactivadas");
}
function errorHandler(message) {
alert("error " + message);
}
Can you help me?
Thanks
--
Jesús Martín Gonzalez
Tel: +34 654420529
9 years, 4 months
Using Aerogear PushPlugin with Phonegap Build
by Fabio Turizo
I noticed that there's no equivalent for the aerogear cordova push plugin
in the Phonegap Build plugin repository. Is there any way to use it with
phonegap build? It'd be a waste if it's not possible.
9 years, 4 months
UPS push to IOS removes the badge
by Kelvin Lunsford
If UPS is given a push command with no "badge" value the IOS badge icon is being removed when the notification is received. Expected behavior is that the badge icon would be unchanged if no badge value is set.
When USP receives a push command with no "badge" value it is sending APNS a "badge" value of -1.
The Apple push payload spec says the badge icon is removed if the "badge" value is 0, and the icon is unchanged if there is no "badge" value. The spec does not say what happens if the "badge" value is less than zero.
Tested devices are removing the badge icon when -1 is set.
Please change UPS so no "badge" value is sent to APNS when the UPS command has no "badge" value.
For example you could change the sendPushMessage function of APNsPushNotificationSender.java to:
PayloadBuilder builder = APNS.newPayload()
// adding recognized key values
.alertBody(message.getAlert())
//.badge(message.getBadge()) // do not set badge here
.sound(message.getSound())
.alertTitle(apns.getTitle())
.alertAction(apns.getAction())
.urlArgs(apns.getUrlArgs())
.category(apns.getActionCategory())
.localizedTitleKey(apns.getLocalizedTitleKey());
if (message.getBadge() >= 0)
builder.badge(message.getBadge()); // only set badge if needed
- Kelvin
9 years, 4 months
Android SDK - Token not renewed when unregistering/registering
by Bourillon, Matthias
Hello,
I have used Aerogear Android SDK (2.2.0) in a native Android App to communicate with an Aerogear Unified Push server and to use Google Cloud Messaging.
After several tests we have identified an issue with token management :
- register() successfully generates a token A against GCM and registration is OK on Aerogear server side
- unregister() successfully invalidates the token A against GCM ("NotRegistered" is generated on GCM side when re-using the token) and unregistration is OK on Aerogear server side
- when calling register() back, registration happens against Aerogear server but with token A which has been invalidated by GCM
After analyzing the SDK source code, we realized that the token is saved in Android Shared Preferences but this token is never removed from shared preferences when calling unregister()!
As a consequence, when a user unregisters/registers to a variant, the "old" token is not renewed and notification sending fails since Google has invalidated this token!
We quickfixed the AeroGearGCMPushRegistrar class by adding a following line in the unregister() method :
AeroGearGCMPushRegistrar.this.setRegistrationId(context, "");
However, I am very surprised that this issue was never seen before.
Am I using the registration/unregistration methods incorrectly? How can I force the token re-generation against GCM?
Thanks,
Matthias
9 years, 4 months
minsdkversion dependency
by Jesús Martín González
Hi,
I am using push plugin for cordova android and I have seen that it has a
dependency about minimun android version, minsdkversion=16. Is it
impossible to reduce this version?, I would like to include previus android
versions in my app.
thank you
9 years, 4 months