Get the current environment for push notifications.
Install using Swift Package Manager:
dependencies: [
.package(url: "https://github.com/doneservices/ApsEnvironment", from: "1.0.0"),
]or using Cocoapods:
pod 'ApsEnvironment', '~> 1.0'Returns the current environment for push notifications as reported by the aps-environment key in the apps entitlements.
If the current environment cannot be determined, nil is returned.