register push notification at the beginning