An Azure service that is used to send push notifications to all major platforms from the cloud or on-premises environments.
The behavior described matches how Azure Notification Hubs validates and persists APNS credentials, but the context does not document any known validator bug of the kind described.
From the available information, only the following can be confirmed:
- For APNS token-based (HTTP/2) authentication, Notification Hubs requires:
-
appId: 10-character Team ID (issuer/issclaim) from the Apple Developer account. -
appName: application name / Bundle ID. -
keyId: 10-character Key ID (kid) from the Apple Developer account. -
token: provider authentication token derived from the.p8key. -
endpoint: APNS HTTP/2 endpoint, e.g.https://api.development.push.apple.com:443/3/devicefor sandbox orhttps://api.push.apple.com:443/3/devicefor production.
-
- When migrating from certificate-based to token-based APNS authentication, Notification Hubs overwrites the certificate credentials with the token properties internally, and the application should continue to receive notifications without additional changes. The documentation notes that Notification Hubs is “set to use the new authentication system with APNS” once the token properties are configured.
- Common misconfiguration checks for Notification Hubs include:
- Ensuring the notification hub name is identical across client registration, backend send code, and the hub configuration.
- Ensuring the correct shared access signatures are used (DefaultListenSharedAccessSignature on clients, DefaultFullSharedAccessSignature on backend).
- For APNS specifically, maintaining separate hubs for sandbox and production, and not mixing certificate types in a single hub.
- The ARM schema for Notification Hubs APNS credentials confirms the property names and expected values for token-based authentication (
appId,appName,keyId,token,endpoint), but does not describe internal validation behavior or error conditions beyond the requirement thatendpointis present.
The context does not provide any product-team guidance, known issues, or troubleshooting steps for the specific case where:
- Direct APNS HTTP/2 calls succeed with the same credentials, but
- Notification Hubs returns
BadRequest: Failed to validate credentials with APNS, and - The
apnsCredentialblock is not persisted on the hub after the failed PATCH/PUT.
It also does not document any limitation related to region, tier (Free vs. paid), or a validator defect that would explain this discrepancy, nor does it describe escalation paths or correlation-ID–based investigation for this scenario.
Because of that, no definitive root cause or confirmation of a validator bug can be given based on the provided material.
References: