# Creating custom notifications

**URL:** <https://meta.discourse.org/t/creating-custom-notifications/58950>\
**Category:** Development\
**Created:** [13. März 2017 um 03:29 UTC](https://meta.discourse.org/t/creating-custom-notifications/58950 "2017-03-13T03:29:35Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![rimian](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rimian/32/120658_2.png) [@rimian](https://meta.discourse.org/u/rimian)\
**Post date:** [13. März 2017 um 03:29 UTC](https://meta.discourse.org/t/creating-custom-notifications/58950/1 "2017-03-13T03:29:35Z")

</div>

Hi!

I want to create a custom notification when something happens in my plugin. I can see there is a custom notification type but I’m unsure about how to use it.

Something like:

```plaintext
data = {title: 'some custom event happened'}
Notification.create!(user_id: 1, notification_type: 14, data: data.to_json)

```

I can create them but they show ‘undefined’:

 ![](https://global.discourse-cdn.com/meta/original/3X/8/e/8e252612a01916c853baa272b18e87c714fa12b1.png)

Can someone please point me in the right direction? Any help much appreciated…

---

_[View the full topic](https://meta.discourse.org/t/creating-custom-notifications/58950)._
