Setting up APNS, also fixed check-in