Handling of APNS url logic