aps-environment occurs because of misconfiguration of Firebase and Apple. There are multiple possibilities and solutions. First make sure that your APNs token..