added callback to log err when failing to register with apns