Configuration
Configure the hosted SDK or opt into custom endpoints.
Hosted NitroPush
For NitroPush Cloud, call the no-argument API once at module scope:
The SDK reads NITROPUSH_DEPLOYMENT_KEY from native configuration. Hosted API and CDN endpoints are supplied by the native SDK.
If bundle signing is enabled in the dashboard, also compile the full base64 DER public key into NITROPUSH_BUNDLE_PUBLIC_KEY. Expo apps should set bundlePublicKey and requireBundleSigning: true in the config plugin. The SDK validates a configured key immediately and then fails closed on missing, legacy, malformed, or context-mismatched release signatures.
Self-hosted or custom endpoints
Only self-hosted installations should use configureWith():
Both endpoints must use HTTPS. Plain HTTP is accepted only for loopback development (localhost, 127.0.0.1, or ::1). Do not use configureWith() for the hosted service.