Hi,
We are trying to send push notifications to iOS device using the java SDK 2.6. The response comes as success, but it is not received at the iOS client. Please help us figure out the issue, below is code:
App42API.initialize(API_KEY,SECRET_KEY);
pushService = App42API.buildPushNotificationService();
PushNotification pushNotification = pushService.sendPushMessageToUser(userName, message);
System.out.println("userName is " + pushNotification.getUserName());
System.out.println("Message is " + pushNotification.getMessage());
System.out.println("Expiry is"+pushNotification.getExpiry());
String jsonResponse = pushNotification.toString();
System.out.println(jsonResponse);
Below is the output:
userName is abc@gmail.com
Message is {"message":"Test Message"}
Expiry is2016-03-03T00:10:07.793Z
{"app42":{"response":{"success":true,"push":{"userName":"abc@gmail.com","message":{"message":"Test Message"},"expiry":"2016-03-03T00:10:07.793Z"}}}}
The user has a registered device and the manual push notifications from AppHQ management console work fine.
Do we need to configure the certificate or some keys in the code?
Thanks