We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I try to get a Respons from the APNS but the Respons is always = null..
try{ if ( !isConnected){ initializeConnection(); } List deviceList = Devices.asDevices(receivers); for (Device device: deviceList){ try{ //validate Token BasicDevice.validateTokenFormat(device.getToken()); PushedNotification notification = pushManager.sendNotification(device, payload, false); if(notification.getResponse()!=null){ notification.getResponse().getMessage(); } notifications.add(notification); }catch(InvalidDeviceTokenFormatException e){ notifications.add(new PushedNotification(device, payload, e)); } } }catch(CommunicationException e){ stopConnection(); throw e; } }
I tried it with an invalid token but it doesnt work
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I try to get a Respons from the APNS but the Respons is always = null..
try{
if ( !isConnected){
initializeConnection();
}
List deviceList = Devices.asDevices(receivers);
for (Device device: deviceList){
try{
//validate Token
BasicDevice.validateTokenFormat(device.getToken());
PushedNotification notification = pushManager.sendNotification(device, payload, false);
if(notification.getResponse()!=null){
notification.getResponse().getMessage();
}
notifications.add(notification);
}catch(InvalidDeviceTokenFormatException e){
notifications.add(new PushedNotification(device, payload, e));
}
}
}catch(CommunicationException e){
stopConnection();
throw e;
}
}
I tried it with an invalid token but it doesnt work
The text was updated successfully, but these errors were encountered: