Basic apns functionality