if (iOSVariant.getCertificate() != null && iOSVariant.getPassphrase() != null) {
final ApnsServiceBuilder builder = APNS.newService().withNoErrorDetection();
// using the APNS Delegate callback to log success/failure for each token:
builder.withDelegate(new ApnsDelegateAdapter() {
@Override
public void messageSent(ApnsNotification message, boolean resent) {
logger.fine("Sending APNs message: " + message.getDeviceToken());
}