adding apns method api