Skip to content

Add trackOpen method for analytics#24

Draft
damireh wants to merge 6 commits into
mainfrom
feat/track-open
Draft

Add trackOpen method for analytics#24
damireh wants to merge 6 commits into
mainfrom
feat/track-open

Conversation

@damireh

@damireh damireh commented Jun 23, 2026

Copy link
Copy Markdown
Member

Hookup method to the api/v1/notifications/:id/open endpoint to track open rates

Closes https://github.com/pnta-io/postbox/issues/1359

damireh added 6 commits June 23, 2026 16:09
PntaFlutter.trackOpen(payload) reads notification_id and token from the
notification payload and routes through the platform interface and method
channel. Best-effort: failures are logged, not thrown.
PUT /api/v1/notifications/:id/open with {project_id, token}, reusing the
existing NetworkUtils helper. Token comes from the payload, so no device
token lookup is needed.
PUT /api/v1/notifications/:id/open with {project_id, token}, reusing the
existing NetworkUtils helper. Token comes from the payload, so no device
token lookup is needed.
@damireh damireh requested a review from mlaucis June 23, 2026 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant