Issue Type: Bug Bug
Assignee: Sebastien Blanc
Components: UnifiedPush-java-sender
Created: 05/Aug/13 11:44 AM
Description:

The UnifiedMessage builder method badge accepts a String as an argument, but the server expects a Number.

Setting it to e.g. badge("2") causes the server to throw an exception during deserialization:

java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer
at org.jboss.aerogear.connectivity.service.sender.message.SelectiveSendMessage.<init>(SelectiveSendMessage.java:80) [classes:]
	at org.jboss.aerogear.connectivity.rest.sender.PushNotificationSenderEndpoint.selectedSender(PushNotificationSenderEndpoint.java:91) [classes:]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [classes.jar:1.6.0_51]
...
Project: AeroGear Push
Priority: Major Major
Reporter: Christos Vasilakis
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira