# Solid Notifications

**URL:** <https://forum.solidproject.org/t/solid-notifications/2933>\
**Category:** Build a Solid App\
**Created:** [April 20, 2020, 9:13am UTC](https://forum.solidproject.org/t/solid-notifications/2933 "2020-04-20T09:13:38Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![MitziLaszlo](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/mitzilaszlo/32/191_2.png) [@MitziLaszlo](https://forum.solidproject.org/u/MitziLaszlo)\
**Post date:** [April 20, 2020, 9:13am UTC](https://forum.solidproject.org/t/solid-notifications/2933/1 "2020-04-20T09:13:38Z")

</div>

1. How do I display the Solid notifications directly on a Solid app rather than redirect the user to the inbox?

2. How do I make sure that when I add a friend or share a route that the notifications appear in my inbox?

---

<div class="post-metadata">

**Author:** ![Smag0](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/smag0/32/310_2.png) [@Smag0](https://forum.solidproject.org/u/Smag0)\
**Post date:** [April 20, 2020, 9:51am UTC](https://forum.solidproject.org/t/solid-notifications/2933/2 "2020-04-20T09:51:31Z")

</div>

Using websocket API [https://github.com/solid/solid-spec/blob/master/api-websockets.md](https://github.com/solid/solid-spec/blob/master/api-websockets.md) but don’t work on folders ( for the moment?), so I use a log.ttl file too

---

<div class="post-metadata">

**Author:** ![michielbdejong](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/michielbdejong/32/195_2.png) [@michielbdejong](https://forum.solidproject.org/u/michielbdejong)\
**Post date:** [April 20, 2020, 12:47pm UTC](https://forum.solidproject.org/t/solid-notifications/2933/3 "2020-04-20T12:47:34Z")

</div>

There are three things one might call “a notification”:

- an inbox message. This is what the LDN spec calls a “notification”
- a pub message in websockets-pubsub. This notifies the in-browser app that something on the pod changed, e.g. a new inbox item arrived (but see @Smag0’s comment above).
- a desktop or phone notification as described on [https://developer.mozilla.org/en-US/docs/Web/API/notification](https://developer.mozilla.org/en-US/docs/Web/API/notification)

You can have a look at [https://solid-notify.5apps.com/](https://solid-notify.5apps.com/) (source code: [https://github.com/michielbdejong/solid-notify](https://github.com/michielbdejong/solid-notify)). It sends a desktop notification when a websockets-pubsub notification indicates that an LDN notification arrived in your inbox. 😃 That code at least used to work a year ago, although it gave me an error when i tried it just now.

---

<div class="post-metadata">

**Author:** ![Smag0](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/smag0/32/310_2.png) [@Smag0](https://forum.solidproject.org/u/Smag0)\
**Post date:** [April 20, 2020, 3:16pm UTC](https://forum.solidproject.org/t/solid-notifications/2933/4 "2020-04-20T15:16:39Z")

</div>

Error for me too

 ![Screenshot_20200420-171610_Chrome](https://europe1.discourse-cdn.com/flex017/uploads/solidproject/original/2X/b/b2b8f8b64575d3d66269530778c8664fb39e1b11.jpeg)

---

<div class="post-metadata">

**Author:** ![Verdejo55](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/verdejo55/32/1600_2.png) [@Verdejo55](https://forum.solidproject.org/u/Verdejo55)\
**Post date:** [April 20, 2020, 9:22pm UTC](https://forum.solidproject.org/t/solid-notifications/2933/5 "2020-04-20T21:22:23Z")

</div>

Hello,

You must give permissions to the web to be able to write to your inbox. You can enable this in your preferences

---

<div class="post-metadata">

**Author:** ![Smag0](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/smag0/32/310_2.png) [@Smag0](https://forum.solidproject.org/u/Smag0)\
**Post date:** [April 20, 2020, 10:23pm UTC](https://forum.solidproject.org/t/solid-notifications/2933/6 "2020-04-20T22:23:44Z")

</div>

@Verdejo55  
Thank you 👍😊

---

<div class="post-metadata">

**Author:** ![Verdejo55](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/verdejo55/32/1600_2.png) [@Verdejo55](https://forum.solidproject.org/u/Verdejo55)\
**Post date:** [April 21, 2020, 7:41am UTC](https://forum.solidproject.org/t/solid-notifications/2933/7 "2020-04-21T07:41:55Z")

</div>

Hello,  
I mean your first point. Leave him a message in his inbox. I suppose it is done with a POST request. What I do is count the items that I have in that folder. But I don’t understand what is LDN?

---

<div class="post-metadata">

**Author:** ![Verdejo55](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/verdejo55/32/1600_2.png) [@Verdejo55](https://forum.solidproject.org/u/Verdejo55)\
**Post date:** [April 26, 2020, 8:23am UTC](https://forum.solidproject.org/t/solid-notifications/2933/8 "2020-04-26T08:23:17Z")

</div>

Hi again, everybody.  
Thank you very much for all the responses. We have already managed to send a notification and stay in the inbox. We send a .ttl file with various relevant information. Have a nice day
