On this page
A marketplace app brings together independent sellers and buyers, which makes trust and message privacy central to its first release. Start with listings and enquiries rather than claiming a complete payment and dispute operation. This build brief proves that a seller can publish permitted goods, a buyer can contact that seller, and neither party can read unrelated conversations or evade moderation through a hidden endpoint.
Screens
- Browse: discover approved, active listings with clear category and asking-price labels.
- Listing detail: show seller-supplied descriptions, permitted photos and an enquiry action.
- Create listing: collect required fields and disclose moderation or publication status before submission.
- Messages: show only conversations the signed-in person participates in, with pending-send and blocked-user states.
- Profile: manage the owner’s listings and account-level privacy choices without exposing private contact details.
Data model
| Table | Key fields | Purpose |
|---|---|---|
| profiles | id (uuid), display_name (text), account_state (text) | Public display identity separated from private authentication details. |
| listings | id (uuid), seller_id (uuid), title (text), price_minor (int), currency (text), moderation_state (text) | Seller-owned advertisements subject to publication controls. |
| conversations | id (uuid), listing_id (uuid), buyer_id (uuid), seller_id (uuid) | Explicit participant pairs for a listing enquiry. |
| messages | id (uuid), conversation_id (uuid), author_id (uuid), text (text), offer_minor (int?), sent_at (timestamptz), read_at (timestamptz?) | Private enquiry content scoped through conversation membership. |
| reports | id (uuid), reporter_id (uuid), listing_id (uuid?), message_id (uuid?), reason (text), state (text) | Actionable abuse reports visible only to authorized reviewers. |
| blocks | blocker_id (uuid), blocked_id (uuid), created_at (timestamptz) | Account-level restrictions that also affect new enquiry creation. |
Sellers may edit their own drafts but cannot set a privileged moderation approval flag. Enforce publication, conversation participation and reporting permissions through backend row-level security and server operations. Check sender identity against the authenticated account rather than a submitted author_id. Store listing photos under owner-scoped upload rules, with publication access reflecting the listing’s state. Public browsing should not disclose seller email addresses or private messages. Blocking and suspension rules must apply to direct API calls as well as buttons on the screen.
Native features for the marketplace app
Let a seller inspect and remove listing images before publication; cancelled selection must not create a public advertisement. Notification payloads should identify a conversation safely without exposing buyer messages on the lock screen.
| Feature | Android (Kotlin) | iPhone (SwiftUI) | Notes |
|---|---|---|---|
| Seller photo selection | Android Photo Picker and upload queue | PhotosPicker with explicit upload progress | Let a seller inspect and remove listing images before publication; cancelled selection must not create a public advertisement. |
| Private enquiry alerts | Participant-scoped push handling | Authorized push routing into an enquiry | Notification payloads should identify a conversation safely without exposing buyer messages on the lock screen. |
| Abuse evidence handoff | In-app report sheet keyed to listing or message | Moderation sheet bound to the reported record | Preserve the report target while content refreshes, and avoid collecting unrelated photo-library or contact access. |
Android notes (Kotlin and Jetpack Compose)
Use a LazyColumn with stable listing IDs and separate paging state from enquiry state. A Material 3 filter ModalBottomSheet should apply price and category choices explicitly, keeping a seller’s unsent listing draft out of the buyer’s browsing state.
- Launch the Android Photo Picker from the listing editor, then track each selected image as pending, uploading or failed. Use WorkManager only for retryable uploads that the seller has approved; a local Room draft is not evidence that moderation has accepted the listing.
- Navigation Compose should carry conversation IDs rather than trusting sender IDs supplied by a deep link. Recheck membership on the backend, and resolve deleted listings or blocked accounts before allowing a reply to be sent.
- With two Android test accounts, send an enquiry about a bicycle, block the sender, and tap an older conversation notification. Verify the block still prevents a new message. Interrupt a photo upload and confirm retrying does not publish duplicate bicycle advertisements.
iPhone notes (Swift and SwiftUI)
Use PhotosPicker to import chosen sale photos into a draft preview. Read each selected item asynchronously, show individual decoding failures, and let the seller remove a failed image without resetting the title, price or category.
- Build listing detail and participant-only chat as separate NavigationStack destinations. Present report reasons in a sheet with detents that retains the exact message identifier even if newer messages arrive while the sheet is visible.
- SwiftData can retain unsent listing text and temporary image references, but the server remains responsible for ownership and publication status. Mark an offline advertisement draft as unpublished and never show an upload spinner as proof that buyers can see it.
- On iPhone, deny notification access, submit a listing with two photos, and confirm enquiries remain accessible from the inbox. Remove one selected photo before publishing, relaunch, and inspect the buyer view to ensure the removed photo and private seller draft are absent.
Copy-paste prompt
Create a marketplace app for Android with Browse, Listing detail, Create listing, Messages and Profile. Start with listings and private enquiries, not checkout or seller payouts. Ask for allowed goods, currency, required listing fields, moderation roles, reporting process, blocking rules, retention and dispute policies. Model profiles, seller-owned listings, participant-scoped conversations, messages, reports and blocks. Enforce all publication and conversation access on the server with row-level security; a user must never approve their own listing through a request parameter. Add real photo selection and owner-scoped uploads. Include loading, no results, pending moderation, rejected upload, failed send, blocked user and unauthorized conversation states. Acceptance requires one seller publishing a permitted listing, a second account sending an enquiry and both reopening the saved conversation. A third account must be unable to read its messages, even when it knows the conversation identifier.
Opens Apirex with this prompt in the box. Pick the Android · Kotlin tab before you send.
Acceptance test
- Create a permitted listing as seller A with an actual selected photo and verify it passes the owner-defined publication process.
- Sign in as buyer B, open the listing and send an enquiry; confirm the seller sees that exact persisted message.
- Reopen Messages in both accounts and verify one conversation with no duplicate message after retrying an interrupted send.
- Use account C to request the conversation and photo draft identifiers directly; deny private messages and unpublished owner-only media.
- Report the listing, apply an authorized moderation removal and block the buyer; verify browsing and new enquiry requests enforce those changes on the server.
Frequently asked questions
Are seller payouts included in the first build?
No funds are collected or distributed in this enquiry-first scope. A transactional version needs explicit seller onboarding, dispute and payout operations with a real provider, plus trusted server prices and server-verified Stripe or Razorpay payments with checked webhook signatures where applicable.
Could sellers offer digital downloads later?
That changes both moderation and payment requirements. As of November 2026, native-store billing rules may apply to digital goods consumed in the app, so review Google Play and App Store requirements instead of adding a generic external payment link to listings.
Who responds when someone reports prohibited goods?
The owner must appoint authorized reviewers and define escalation, evidence retention and appeal procedures before launch. A report button without an operating review process does not resolve abuse, and the app must not promise automatic fraud protection.
Build this blueprint
The blueprint prompt, ready for your platform. Edit anything before you send it.
Opens Apirex with this prompt. Pick the Android · Kotlin tab before you send. The Free plan includes 5 Rex Credits a day.