Clarify APNs sandbox endpoint requirements#3084
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
I did notice the use of |
Update APNs documentation to clarify that users must specify the sandbox/production endpoint for both authentication methods: - Token-based auth (.p8): Must specify endpoint (same key works for both) - Certificate-based auth (.p12): Must specify endpoint and match with certificate type (development cert = sandbox, distribution cert = production) Changes: - Add "Why token-based authentication is recommended" section with comparison table and link to Apple docs - Update Control API docs to explain apnsUseSandboxEndpoint field - Remove references to auto-detection (not implemented) Ref: PDR-088, EDU-1652
b9300e9 to
a1ac961
Compare
m-hulbert
left a comment
There was a problem hiding this comment.
Thanks @mattheworiordan - pushed some minor copy updates and I've also updated the FAQ in the interim.
|
Thanks @m-hulbert 👏 |
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.