Skip to content

How should my app handle browser notification permission for completed generations?

Ask for browser notification permission only in an appropriate user-initiated flow, and keep that permission separate from your application's notification preferences. Denial must not block generation or hide completed results. A browser permission grants a technical capability, not blanket consent to every notification category.

PRESERVE API DATA ACCURATELYAISwapLab team · Editorial methodPublished 2 min read
Open API documentationExplore 67 Image SkillsPrivate keys · Explicit credit approval
Article workflow: Offer a meaningful opt-in; Check both gates at delivery; Provide a durable fallback.
Workflow diagram: Offer a meaningful opt-in → Check both gates at delivery → Provide a durable fallback. Read the article for evidence and limits.

Permission is one of several gates

A user may permit notifications for one site but disable generation notices inside the product. Another may deny the browser prompt yet still want an in-app completion inbox. The workflow should work without repeated permission requests or misleading delivery promises.

What to do next

  1. 01

    Offer a meaningful opt-in

    Explain the type of completion notice before invoking the browser permission flow. Tie the request to a clear user action, avoid prompting on every page load, and store the product preference separately from the browser's permission state.

  2. 02

    Check both gates at delivery

    Before showing a browser notice, confirm technical permission and the current product preference. Keep messages minimal on shared screens, using a private task link rather than embedding prompt text or sensitive output details.

  3. 03

    Provide a durable fallback

    Keep completion in project history or an in-app inbox regardless of browser permission. Test granted, denied and unavailable notification environments, ensuring users can still find the result and understand which delivery channel is active.

A concrete example

Illustrative example: the browser allows notifications but the user turns off generation notices in the app. Completion remains in project history without an external popup. Re-enabling the preference does not create a new generation.

Before you call it ready

  • Permission and preference are separate.
  • Denial never blocks result access.
  • Notices avoid private creative content.

When to stop or choose another method

Stop repeatedly prompting after denial or claiming browser notification delivery is guaranteed whenever a task completes.

Sources

One task. A recoverable workflow.

Check the contract, approve the quote and retain the job.

Open API documentation