add scripts to generate apns script