I am sending push-notification to i-phone using Java APNs. Am able to send notification to one app but am not able to send notification to other apps. For first app (Successful sending push notification) am using
String json1= "{\"aps\":{\"alert\":\"Testing.. (3)\",\"badge\":1,\"sound\":\"default\"}}";
PushNotificationPayload payLoad = null;
try {
payLoad = PushNotificationPayload.fromJSON(json1);
} catch (JSONException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Push.payload(payLoad , "/home/owner/Downloads/v.p12", null, false, "97884fe9ffeb6f5....");
and for other app (unsuccessful) am using the same
String json1= "{\"aps\":{\"alert\":\"Testing.. (3)\",\"badge\":1,\"sound\":\"default\"}}";
PushNotificationPayload payLoad = null;
try {
payLoad = PushNotificationPayload.fromJSON(json1);
} catch (JSONException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Push.payload(payLoad , "/home/owner/Downloads/app.p12", null, false, "191cdc5a8c8c1cb19597a4fd....");
any help ??