-
-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Container Identifiers #58
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor addition
/// You must configure at lease one client in order to send notifications to devices. If you plan on supporting both development builds (ie. run from Xcode) and released builds (ie. TestFlight/App Store), you must configure at least two configurations: | ||
/// | ||
/// ```swift | ||
/// let apnsKey = ... // The .p8 file as a string. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add a note here to suggest passing it in as an environment variable and not hardcoding it in the source code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good callout, I’ll add a section for security considerations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated!
b9416fb
to
e7db3f9
Compare
e7db3f9
to
3b4f6e3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #58 +/- ##
===========================================
- Coverage 89.39% 64.44% -24.95%
===========================================
Files 4 4
Lines 66 90 +24
===========================================
- Hits 59 58 -1
- Misses 7 32 +25
|
These changes are now available in 4.2.0
To help users who need to configure a production and development container, added two new containerIDs:
production
anddevelopment
. Also added documentation and clarified how thedefault
ID is used, which isn't always the default depending on howuse
is called.Note: Since this is new, I went with
development
instead ofsandbox
here because all of Apple's documentation refers to it as the development environment. We should probably add.development
and deprecate.sandbox
in APNSwift as well.