# Sending Notification to Specific User with Onesignal

**URL:** <https://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022>\
**Category:** Tutorials and DIY Guides\
**Tags:** community, push-notifications, onesignal, webapi, expert, tutorial\
**Created:** [July 21, 2019, 12:58am UTC](https://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022 "2019-07-21T00:58:23Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![mom7667yafy](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@mom7667yafy](https://community.thunkable.com/u/mom7667yafy)\
**Post date:** [April 16, 2020, 12:27pm UTC](https://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022/44 "2020-04-16T12:27:48Z")

</div>

I would really appreciate if you help me.  
I’ll wait for your tutorial.

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [April 16, 2020, 12:38pm UTC](https://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022/45 "2020-04-16T12:38:43Z")

</div>

i would encourage you to keep trying. dont wait for me, it may not happen as soon as your want

---

<div class="post-metadata">

**Author:** ![mom7667yafy](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@mom7667yafy](https://community.thunkable.com/u/mom7667yafy)\
**Post date:** [April 16, 2020, 12:40pm UTC](https://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022/46 "2020-04-16T12:40:35Z")

</div>

Haha yes  
I will try.

---

<div class="post-metadata">

**Author:** ![mom7667yafy](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@mom7667yafy](https://community.thunkable.com/u/mom7667yafy)\
**Post date:** [April 17, 2020, 4:53am UTC](https://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022/47 "2020-04-17T04:53:11Z")

</div>

[https://x.thunkable.com/projects/5e982c6f97dd4c006f25303a/9c0c792e-bdc5-4834-b12d-75a0c02d1803/designer](https://x.thunkable.com/projects/5e982c6f97dd4c006f25303a/9c0c792e-bdc5-4834-b12d-75a0c02d1803/designer)  
I worked on sending push notifications to specific user.  
When I press the PushNotification button, I expect the notification to come to my phone as written on the body.  
But it doesn’t work.  
Please advise what is wrong.

 ![스크린샷 2020-04-17 오후 1.29.08](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/4/945a2311c84c5fa40e8c59f5e90e0709446bb073.png) ![스크린샷 2020-04-17 오후 1.29.19](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/5/55f5acf43e5fa6313c30c4a17d72aef5e3e3ae12.png) ![스크린샷 2020-04-17 오후 1.42.33](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/6/a68abdc7a22b0ab1e9c6271ffc401844572515f2.png)

I have read all of the above and tried dozens of specific push notifications, but it shouldn’t.

I finally conclude that the specific push notifications currently not working with the above method.

---

<div class="post-metadata">

**Author:** ![tchind](https://avatars.discourse-cdn.com/v4/letter/t/ebca7d/32.png) [@tchind](https://community.thunkable.com/u/tchind)\
**Post date:** [July 12, 2020, 2:57pm UTC](https://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022/49 "2020-07-12T14:57:51Z")

</div>

@Jacob1 I am unable to send push notifications Automatically. I followed your awesome tutorials but it did not work.  
Here is a screenshot of my blocks

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/0/d0a5ce0b825b5f7be118e16d8133fc42e2bce0d2.png)

And screenshot of Design

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/e/0e39ca8048653915724cf7495a8ada80fef495a9.png)

And the link so that you can assist-  
[https://x.thunkable.com/copy/721bab3ab6bbd5e27f573776ff60e70d](https://x.thunkable.com/copy/721bab3ab6bbd5e27f573776ff60e70d)  
Pls PM me in this problem

---

<div class="post-metadata">

**Author:** ![funhall](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/funhall/32/92145_2.png) [@funhall](https://community.thunkable.com/u/funhall)\
**Post date:** [October 11, 2020, 3:20pm UTC](https://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022/51 "2020-10-11T15:20:21Z")

</div>

i´m still having issues in this matter. I have exactly the same settings but it dont work.  
I get the error “there was a problem in the JSON you submitted”  
Can someone please help here???  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/a/7afe2a3144d2222270029d14d6d395b60a275551.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/2/d2836a838b382b0a0206b42cf990352c4211b269.png)

I am also not sure if it is the right YOUR\_AUTHORISATION\_CODE.  
The turtorial says:  
In the Property Field add “Authorization” and in the value field “Basic” & YOUR\_AUTHORISATION\_CODE which you can find [here](https://documentation.onesignal.com/docs/account)  
But in that link i dont find any code. Is it the rest api key that it is reffering to or what precise is that code???The link shows me this

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/5/c56fd4eda0ba40aacd4fe07525b760515a64bc81.png) And there is no AUTHORISATION\_CODE.  
Am I complety misunderstang everything???

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [October 11, 2020, 3:57pm UTC](https://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022/52 "2020-10-11T15:57:01Z")

</div>

Is it asking for the Api key?

---

<div class="post-metadata">

**Author:** ![funhall](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/funhall/32/92145_2.png) [@funhall](https://community.thunkable.com/u/funhall)\
**Post date:** [October 11, 2020, 4:15pm UTC](https://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022/53 "2020-10-11T16:15:27Z")

</div>

> [@funhall](#):
>
> “there was a problem in the JSON you submitted”

No it is writing“there was a problem in the JSON you submitted”

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [October 11, 2020, 4:21pm UTC](https://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022/54 "2020-10-11T16:21:24Z")

</div>

What’s your Json body look like? Does it match the docs?

---

<div class="post-metadata">

**Author:** ![funhall](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/funhall/32/92145_2.png) [@funhall](https://community.thunkable.com/u/funhall)\
**Post date:** [October 11, 2020, 4:36pm UTC](https://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022/55 "2020-10-11T16:36:52Z")

</div>

Hmmm Im sending this. ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/d/7d2919f2ee2a12dcb665b075a583b6729f76de3b.png)  
Do I need something more then?

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [October 11, 2020, 4:42pm UTC](https://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022/56 "2020-10-11T16:42:23Z")

</div>

Try using the generate Json from object → create object block to create your Json. That will help ensure correct formatting.

Then compare your Json body to that which is provided in the OneSignal documentation. Are the identical or accurate?

I would also set your headers using blocks but that’s just my preference. I like to see it all together.

---

<div class="post-metadata">

**Author:** ![funhall](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/funhall/32/92145_2.png) [@funhall](https://community.thunkable.com/u/funhall)\
**Post date:** [October 11, 2020, 4:45pm UTC](https://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022/57 "2020-10-11T16:45:49Z")

</div>

Thanks a lot for fast feed back, Jared.  
Can you please help me with how the block should look like.

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [October 11, 2020, 4:59pm UTC](https://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022/58 "2020-10-11T16:59:51Z")

</div>

Something like this but not exactly. You’ll have to fill in the blanks.

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/7/d7e58e5ba5f6a9236d3063c18f447e426718d02d.jpeg)

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [October 11, 2020, 9:04pm UTC](https://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022/60 "2020-10-11T21:04:39Z")

</div>

You also need “”. for the users Id.

[“USERID\_blablabla”]

---

<div class="post-metadata">

**Author:** ![drted](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/drted/32/92694_2.png) [@drted](https://community.thunkable.com/u/drted)\
**Post date:** [October 25, 2020, 3:49pm UTC](https://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022/61 "2020-10-25T15:49:18Z")

</div>

Thanks a million to [jacob1](http://community.thunkable.com/u/jacob1) for this great idea!

Like many others, I struggled to get this working. Below is a picture of my “all block” solution to sending a push message ('cuz this is Thunkable, right?)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/e/3e753eb16c96506860c78e8ced05252ca0a20fc2.png)

You will notice that the Headers do not include the Authorization parameter. Interestingly, when using the include\_player\_ids parameter, the API key is not required. One less piece of secure information you do not need to include in your app.

I tried to use the query parameters block, but I kept getting errors so I finally switched to the body block. It is important to note that unlike the query parameters and header blocks, the body block is TEXT not a JSON object, so you need to use the GENERATE JSON FROM OBJECT block to get the body to work correctly.

Happy Thunking!

---

<div class="post-metadata">

**Author:** ![francabral](https://avatars.discourse-cdn.com/v4/letter/f/48db29/32.png) [@francabral](https://community.thunkable.com/u/francabral)\
**Post date:** [October 26, 2020, 8:15pm UTC](https://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022/62 "2020-10-26T20:15:58Z")

</div>

This is great, thank you both so much!!! 🙂 🙂 🙂 I have a question, do these notifications work even if the user is not online? If I activate a specific time, will you send me a notification when it is fulfilled?

---

<div class="post-metadata">

**Author:** ![drted](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/drted/32/92694_2.png) [@drted](https://community.thunkable.com/u/drted)\
**Post date:** [October 26, 2020, 10:12pm UTC](https://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022/63 "2020-10-26T22:12:16Z")

</div>

I don’t know how One Signal works for offline devices. Sorry ☹

---

<div class="post-metadata">

**Author:** ![jacob1](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@jacob1](https://community.thunkable.com/u/jacob1)\
**Post date:** [October 27, 2020, 12:23am UTC](https://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022/64 "2020-10-27T00:23:37Z")

</div>

Hi - yes that’s correct, if you schedule a onesignal notification, even if the user is not using the app it will trigger the notification. If the device is offline you can set the TTL (time to live) of the notification for a set period until the devices comes back online, default I think is 3 days but you can view info here: [https://documentation.onesignal.com/docs/how-notifications-work#time-to-live](https://documentation.onesignal.com/docs/how-notifications-work#time-to-live)

---

<div class="post-metadata">

**Author:** ![Vaiper\_watafai](https://avatars.discourse-cdn.com/v4/letter/v/e36b37/32.png) [@Vaiper\_watafai](https://community.thunkable.com/u/Vaiper_watafai)\
**Post date:** [October 29, 2020, 2:30pm UTC](https://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022/65 "2020-10-29T14:30:22Z")

</div>

Hi Drted, can you help me please?  
How have you done to send notifications to a specific user?  
I did the same with the image you posted, but it doesn’t work. ![CaSSSSptura](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/4/d4ce801e6962ec959d327024540beda5d65e318e.jpeg)

---

<div class="post-metadata">

**Author:** ![drted](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/drted/32/92694_2.png) [@drted](https://community.thunkable.com/u/drted)\
**Post date:** [October 29, 2020, 2:53pm UTC](https://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022/66 "2020-10-29T14:53:38Z")

</div>

[Vaiper\_watafai](http://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022/65),

I have a few questions and comments:

1. Unless you have a Pro Thunkable account, you can only test this on an Android Device. Live test using the web app does not work. Are you testing this using the Android Thunkable Live app?
2. Did you set up your One Signal Account?
3. Does the One Signal website list your device?
4. Try testing a push notification from the One Signal Website. Did that work?
5. Is the alert displaying?
6. What error message are you receiving in the alert?

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/8/5880186aad42ac39cf9ad6173db30ff820466ce7.png)

[Previous page](https://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022.md?page=2)

[Next page](https://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022.md?page=4)
