Skip to content
WilderLopezPublic

About

Reply inside your app to the feedback your users send through Sentry

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

replyback

Reply inside your app to the feedback your users send through Sentry.

CI MIT iOS 17+ Swift Package Manager Cloudflare Workers

Deploy · Integrate on iOS · API · Español

A reply typed in the replyback CLI reaches the user's iPhone as a push and appears in their support thread

Illustration with invented data. The SDK has no UI: the screen is yours.

Sentry collects user feedback but gives you no way to answer it. replyback adds that channel without touching your app's backend and without email: you reply from a CLI, a Cloudflare Worker stores the reply and sends a push, and your app shows the comment and its reply as a thread.

Note

Early stage: the iOS SDK has been tested on a real iPhone but has not shipped in an App Store release yet. Android has no SDK, only a documented API.

How it works

sequenceDiagram
    actor U as User
    participant A as Your app
    participant S as Sentry
    actor Y as You (CLI)
    participant W as Worker + D1
    participant F as FCM

    U->>A: Sends a comment
    A->>S: Comment with a random key (ref)
    A->>W: Registers the ref and push token
    Y->>S: Reads comments (read-only)
    Y->>W: Sends the reply and the original comment
    W->>F: Neutral push
    F-->>A: "You have a new reply"
    A->>W: Syncs with the ref
    W-->>A: Comment and reply
    A-->>U: Shows the thread
Loading

What you get

  • Threads in your app: each comment with its replies, plus an "awaiting reply" state.
  • Free to start: it should fit Cloudflare's and Firebase's free plans.
  • One deployment per project: your own Worker, database and secrets. No central server.
  • No backend changes: the Worker never calls your backend.
  • Works for old comments: comments sent before integrating the SDK can also be answered, on iOS.

A look at the SDK

No dependencies, not even on Sentry, and no UI, so threads look like the rest of your app.

import Replyback

// Your feedback form: add the key, and send to Sentry as usual.
let message = Support.client.prepareComment(text)
SentrySDK.capture(feedback: SentryFeedback(message: message, name: name, email: email, source: .custom))
await Support.client.sync(fcmToken: token)

// Your support screen.
ForEach(Support.client.threads) { thread in
    Text(thread.comment ?? "")
    ForEach(thread.replies) { reply in
        Text(reply.text)
    }
}

How it handles data

Data Where it lives
Comment, reply, user ID, push token Your Cloudflare account, deleted after 2 years of inactivity
Keys to read them (ref) iCloud Keychain on the device, per account
Local copy of threads App cache, excluded from backups
Email Never stored by replyback
  • Keys, not logins: each comment carries a random UUID, and only its holder can read the replies. The user ID is not used as a key because it is not secret. It is sent by the CLI and never returned to the app.
  • Neutral push: neither the reply nor the key travels in the notification.
  • Read-only on Sentry: the CLI never writes there, and never prints emails or user IDs.
  • Deletion: the app can erase its data with deleteAllData(), and you can with replyback forget.

Important

You become responsible for this data. Check that your privacy policy covers it, and call deleteAllData() from your account deletion flow.

Get started

  1. Deploy the Worker and set up the CLI.
  2. Integrate the iOS SDK, or implement the API on another platform.
  3. Answer your users:
pnpm replyback --deployment my-app list --pending
pnpm replyback --deployment my-app show PROJECT-123
pnpm replyback --deployment my-app reply PROJECT-123 "Fixed in the latest version, thanks for reporting it."

reply asks for confirmation before sending, and running the same command twice does not duplicate the reply or the push.

Known limits

  • Sentry's spam detector: it can archive real comments on its own, and it sends no alerts for them. Use replyback list, which shows them as [archived], rather than relying on alerts.
  • Sentry takes a few minutes to make a new comment available.
  • The keys depend on iCloud Keychain: without it, or when moving to another Apple ID or to Android, the user loses access to their history.
  • Unanswered comments are local: the CLI uploads the comment when replying, so a comment with no reply does not appear on another device.
  • History window: the CLI reads the last 90 days of comments.

Development

make install
make check   # typecheck, Worker, CLI and SDK tests, and an iOS build

The design decisions are in docs/diseno.md, in Spanish.

License

MIT

About

Reply inside your app to the feedback your users send through Sentry

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages