Skip to content

Done screen and Save / Share

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

After payment the page always sends every file to your app (job.completed). The done screen only decides what the user sees next.

doneScreen The user sees Then
all every file in a carousel, Save / Share per file, “Back” close when the user taps “Back”
photo (default) the main photo with Save / Share, “Back” close on “Back”
none a short “Returning to the app” state close right after job.completed: show the files in your own UI

The default comes from your partner configuration; your app can override it per session: React Native <Snap4IdFlow doneScreen="none">, native host hello.doneScreen.

Save and Share buttons appear only for what your app grants in hello.capabilities; the page then sends artifact.save / artifact.share with the file’s code and your app does the work (photo library, share sheet).

  • React Native: <Snap4IdFlow capabilities={{ save: true, share: true }}> (default: both, where the device supports them); the component saves and shares through client.files.
  • Native host: capabilities: { save, share } in hello (absent ⇒ both off), then handle the two messages.

Save needs the photo-library add permission (iOS NSPhotoLibraryAddUsageDescription; the Expo config plugin’s savePhotosPermission).