paritytech / paritytech/triangle-js-sdks

SPAs not able to send notifications via Polkadot Apps

Open
#149 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
3
Forks
1
Avg merge
1d 14h
Merged PRs (30d)
8

Description

When an user interacts with a product via the SPA (e.g. the conference app), notifications to that user can only be received while the SPA is open. As soon as the user is not interacting with the product anymore (e.g. the SPA or app is closed), no notifications from the product are received any longer.

@P1sar suggested we can use the statement store and create a channel for these product notifications, where the user can subscribe to and listen if there's a notification for them coming in.
@ryanleecode is currently working on the statement store subscription for chats: https://hackmd.io/@1JCaGppGSUqHtJilikYaKw/r16YTVg5Ze

cc @SBalaguer @TorstenStueber

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the statement store subscription design linked in the issue, especially the work on chat subscriptions, and inspect how the SDK serves SPAs such as the conference app. Done means a product can send notifications to a user through the statement store channel and the user can receive them after the SPA is no longer open.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.