Skip to content

Troubleshooting

Documents @snap4id-sdk/app-embed 1.0.0 · @snap4id-sdk/embed-protocol 1.0.0 · protocol 1.0

Every code with its meaning and fix is in error codes. This page goes by symptom.

  • “Open this in the app” / no bridge: the page found no host bridge. It was opened outside your host, the shim was not injected (React Native: rebuild after installing the package; Expo Go is not supported), or a native host posts to the wrong handler name.
  • handshake_timeout: the host did not answer hello. Native hosts: check page messages reach your code and you reply with replyTo = the page hello’s id.
  • embed_unavailable: wrong partner id, or embedding not enabled for it yet.
  • origin_rejected (component): a URL outside the origin policy; leave origin unset in release builds.
Symptom Likely cause
unlock_rejected / binding_mismatch the purchase is not bound to the page’s paymentRef (App Store appAccountToken, Play obfuscatedProfileId)
unknown_product the product id is not in your partner configuration (tell Snap4ID about new products; keep retired ones 30 days)
environment_not_allowed a sandbox purchase against production without a sandbox window, or an Xcode / fake receipt in production
invalid_receipt wrong app (bundle id / package name), wrong Play licensing key, or a revoked purchase
trust_mode_mismatch the app checks purchases in your own backend (onVerifyPurchase) but your configuration says Snap4ID or your verifier server checks them, or the reverse
backend: nothing happens onVerifyPurchase never resolves (15 s bound ⇒ backend: timeout), or your backend gets 401 unauthorized (key id, key, clock)
the purchase was consumed but the job is unpaid something finished the purchase before the unlock (RevenueCat auto-finish); use observer mode
  • artifacts_unavailable: files not ready 30 s after payment; the page keeps waiting.
  • Paid but nothing arrived: recovery must run at every start (component: client.start() and <Snap4IdResume> mounted), and your delivery handler must succeed (it is retried until it does).
  • Links stop working after 30 days: copy files when they arrive.

Send the order code, the job id, the paymentRef and, for Partner API calls, the requestId of the error. Never send receipts, keys or full signed links.