Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 635 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 635 Bytes

ApsEnvironment

Get the current environment for push notifications.

Installation

Install using Swift Package Manager:

dependencies: [
    .package(url: "https://github.com/doneservices/ApsEnvironment", from: "1.0.0"),
]

or using Cocoapods:

pod 'ApsEnvironment', '~> 1.0'

API

ApsEnvironment.get() -> String?

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.