Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Simple notifications #442

Closed
notnotdrew opened this issue Apr 27, 2017 · 1 comment
Closed

Simple notifications #442

notnotdrew opened this issue Apr 27, 2017 · 1 comment
Labels

Comments

@notnotdrew
Copy link
Member

notnotdrew commented Apr 27, 2017

An idea to send messages to IDE users:

Create an endpoint on learn that returns something like

{ 
  "message": "Hello there",
  "options": {},
  "expires":  "datestring"
}

Where options correspond to the options defined for notifications (replacing button[onDidClick] with something like button[url], and if provided the button just opens the url).

On the client, we check the endpoint maybe every hour. The first time we get a message, we calculate & store a hash of it. Whenever the hash is broken, as long as it hasn't expired, we pop it open.

Alternatively we send an id rather than hashing or something.

@joshrowley
Copy link
Contributor

Maybe not for this PR / release cycle, but I think it'd be also nice to be able to send a type of message that opens up a pop up (the endpoint can have width and height dimensions and then a default) with any URL we want to send students to, that way we have a lot of flexibility.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants