Clarify APNs sandbox endpoint requirements #3084
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I created this PR following some conversations that went on today around the new push support in the CLI that I've created a pull request for and some issues I found around token and certificate based auth and the use of the sandbox endpoint field. Please read PDR-088 to see the decision that was made and please see the Push PR for the CLI which will give you some context as to why I'm proposing this small change. In addition, there's an update that needs to happen to one of the FAQ pages which I'm pasting in below. Note I am aware FAQs are being deprecated, but I'd rather update now and then whoever is driving that final migration is responsible for migrating that content.
This PR updatess APNs documentation to clarify that users must specify the sandbox/production endpoint for both authentication methods:
Changes:
Ref: PDR-088, EDU-1652
The proposed FAQ changes are:
Page: https://faqs.ably.com/for-apples-apns-what-is-the-sandbox-endpoint
When do I need to select the sandbox endpoint?
You must specify the sandbox endpoint setting for both token-based (.p8) and certificate-based (.p12) authentication.
Use sandbox when:
Use production when:
Important: For certificate-based authentication, you are responsible for matching the endpoint selection with your certificate type:
For more information about APNs environments, see Apple's documentation on sending notification requests to APNs.