APNS provider sample code