correctly receiving token value in app delegate