mwkirk / javapns

Test import of svn javapns repo from Google Code
3 stars 0 forks source link

PushedNotifications object returned by Push.alert() is empty. #146

Closed mwkirk closed 11 years ago

mwkirk commented 11 years ago

Original author: ghazal.m...@gmail.com (September 22, 2012 07:27:58)

What steps will reproduce the problem? 1.Make a push.alert/ push.payload call passign sufficient arguments

  1. No exception is thrown
  2. notifications size is coming as zero.

What is the expected output? What do you see instead?

Expected responce is i should be getting the pushednotifications back, error or success. But not empty.

What version of the product are you using? On what operating system? 2.2, Window 7

Please provide any additional information below.

Code to push

PushedNotifications notifications = Push.alert(message, AppProperties.getAPNKeystorePath(), AppProperties .getAPNPassword(), false, new ArrayList<String>(deviceTokens)); logger.info("notifications: " + notifications.size()); // this displays zero // never enters this loop for (PushedNotification notification : notifications) { logger.info(notification.getLatestTransmissionAttempt() + " was "

Original issue: http://code.google.com/p/javapns/issues/detail?id=146

mwkirk commented 11 years ago

From sype...@gmail.com on September 22, 2012 13:14:28 Please provide the complete log output that is generated by JavaPNS.

mwkirk commented 11 years ago

From ghazal.m...@gmail.com on September 22, 2012 14:25:49 Sorry, my bad. My deviceTokens list was empty so it was not even generating any JavaPNS logs. Works fine now, Thanks.