Upgrade to support the new version of APNS and fix bug of expiration date.