# Doubt regarding notifications to specific user

**URL:** https://community.thunkable.com/t/doubt-regarding-notifications-to-specific-user/1057868
**Category:** Questions about Thunkable X
**Created:** [January 19, 2021, 3:33pm UTC](https://community.thunkable.com/t/doubt-regarding-notifications-to-specific-user/1057868 "2021-01-19T15:33:25Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![smartnst.tech9d](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@smartnst.tech9d](https://community.thunkable.com/u/smartnst.tech9d)
#### Post date: [January 19, 2021, 3:33pm UTC](https://community.thunkable.com/t/doubt-regarding-notifications-to-specific-user/1057868/1 "2021-01-19T15:33:26Z")

</div>

[Specific user notification](http://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022/51)  
I followed this tutorial for setting up this feature in my app but the first step was’nt clear for me, so I followed [This tutorial](http://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022/61) by @drted but somehow it isn’t working right for me. I wanted to know if in the tutorial by @drted we need to set up something in the web api block apart from the code, it tried various ways of debugging and once when I tried it ,it gave me an alert which was to be shown for an error with the right messages. What should I do to correct this ? Pls help (also attaching the code).

 ![code](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/7/075e428643972c3989c7939e05469d31bdd70bf5.png)

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [January 19, 2021, 3:52pm UTC](https://community.thunkable.com/t/doubt-regarding-notifications-to-specific-user/1057868/2 "2021-01-19T15:52:34Z")

</div>

Have you tried it from the Onesignal console directly?  
First establish the fact that it works independently then you go to Thunkable platform.

Your App should be tested from the mobile.

In your test app, put a label to show the notification user ID. If this is not obtained, the operation fails

---

<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: [January 19, 2021, 4:07pm UTC](https://community.thunkable.com/t/doubt-regarding-notifications-to-specific-user/1057868/3 "2021-01-19T16:07:58Z")

</div>

You might also consider capturing the response and displaying that as well. Perhaps the response will indicate the issue.

---

<div class="post-metadata">

### Author: ![smartnst.tech9d](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@smartnst.tech9d](https://community.thunkable.com/u/smartnst.tech9d)
#### Post date: [January 20, 2021, 4:23am UTC](https://community.thunkable.com/t/doubt-regarding-notifications-to-specific-user/1057868/4 "2021-01-20T04:23:31Z")

</div>

I did send notification directly from onesignal and that did work

---

<div class="post-metadata">

### Author: ![smartnst.tech9d](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@smartnst.tech9d](https://community.thunkable.com/u/smartnst.tech9d)
#### Post date: [January 20, 2021, 4:24am UTC](https://community.thunkable.com/t/doubt-regarding-notifications-to-specific-user/1057868/5 "2021-01-20T04:24:14Z")

</div>

Yeah, I will try that one

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [January 20, 2021, 5:44am UTC](https://community.thunkable.com/t/doubt-regarding-notifications-to-specific-user/1057868/6 "2021-01-20T05:44:37Z")

</div>

Good. One issue out of the way,  
See that the notification user ID is actually supplying the onesignal user ID by showing it in a label before calling the Web API

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

If this is not giving you the user ID the operation will not work.

---

<div class="post-metadata">

### Author: ![smartnst.tech9d](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@smartnst.tech9d](https://community.thunkable.com/u/smartnst.tech9d)
#### Post date: [January 20, 2021, 8:11am UTC](https://community.thunkable.com/t/doubt-regarding-notifications-to-specific-user/1057868/7 "2021-01-20T08:11:10Z")

</div>

Okay, I’ll try both

---

<div class="post-metadata">

### Author: ![smartnst.tech9d](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@smartnst.tech9d](https://community.thunkable.com/u/smartnst.tech9d)
#### Post date: [January 20, 2021, 8:25am UTC](https://community.thunkable.com/t/doubt-regarding-notifications-to-specific-user/1057868/8 "2021-01-20T08:25:40Z")

</div>

![20210120_135232](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/e/1ecd7e4df77d47a80ef45e3a945ca8df030f2995.jpeg)  
I tried doing what @drted asked to do and this is the response I am getting

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [January 20, 2021, 8:55am UTC](https://community.thunkable.com/t/doubt-regarding-notifications-to-specific-user/1057868/9 "2021-01-20T08:55:37Z")

</div>

You mean to say that the component `Text_Inputofchecklist` is empty. You can always check that the message field has some value before issuing the Web API request.

---

<div class="post-metadata">

### Author: ![smartnst.tech9d](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@smartnst.tech9d](https://community.thunkable.com/u/smartnst.tech9d)
#### Post date: [January 20, 2021, 3:37pm UTC](https://community.thunkable.com/t/doubt-regarding-notifications-to-specific-user/1057868/10 "2021-01-20T15:37:09Z")

</div>

![20210120_201705](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/c/2c5e040b80729cab3320c56ad4554bcb43d4ee31.jpeg)  
I tried with text in the text input and I am getting an in app notification instead of the usual one and the response , error and status is different right now

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [January 20, 2021, 4:00pm UTC](https://community.thunkable.com/t/doubt-regarding-notifications-to-specific-user/1057868/11 "2021-01-20T16:00:09Z")

</div>

Great job.

Status of 200 means success. Only check the error block if status is NOT 200

---

<div class="post-metadata">

### Author: ![smartnst.tech9d](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@smartnst.tech9d](https://community.thunkable.com/u/smartnst.tech9d)
#### Post date: [January 21, 2021, 6:27am UTC](https://community.thunkable.com/t/doubt-regarding-notifications-to-specific-user/1057868/12 "2021-01-21T06:27:36Z")

</div>

So this is meant to give an in-app notification? I wanted it to give the casual notification

---

<div class="post-metadata">

### Author: ![smartnst.tech9d](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@smartnst.tech9d](https://community.thunkable.com/u/smartnst.tech9d)
#### Post date: [January 21, 2021, 6:29am UTC](https://community.thunkable.com/t/doubt-regarding-notifications-to-specific-user/1057868/13 "2021-01-21T06:29:00Z")

</div>

Why is the external id giving a null value, does external id mean app id?

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [January 21, 2021, 8:41am UTC](https://community.thunkable.com/t/doubt-regarding-notifications-to-specific-user/1057868/14 "2021-01-21T08:41:15Z")

</div>

External ID is an ID that you assign and bind it to the player\_id generated by Onesignal.

---

<div class="post-metadata">

### Author: ![smartnst.tech9d](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@smartnst.tech9d](https://community.thunkable.com/u/smartnst.tech9d)
#### Post date: [January 21, 2021, 1:55pm UTC](https://community.thunkable.com/t/doubt-regarding-notifications-to-specific-user/1057868/15 "2021-01-21T13:55:01Z")

</div>

I want to know if this code is for an in app notification or not? and how to get the external id filled with some value,  
Thanks in advance for tolerating my too many doubts

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [January 22, 2021, 9:11am UTC](https://community.thunkable.com/t/doubt-regarding-notifications-to-specific-user/1057868/16 "2021-01-22T09:11:10Z")

</div>

Dear @smartnst.tech9d ,

You said you tried the push notification from the OneSignal console from your computer to your mobile device. This is enough to show that this solution is for push notification as it name suggests and not in-app notification.

However, when you call the service from your app you will of course receive it in your app.

The easiest scenario for the good implementation of external ID is:

Suppose you have an app utilizing the Firebase authentication using email address of the user and you have a user who accessed your app from the mobile and from a tablet.

In effect, the user is using your app with a single account but from two different devices. Now, knowing that OneSignal uses a player ID per device you can foresee a problem of where to send the notification as the same user has to different devices.

In this case, the OneSignal service allows the use of **external ID** with which both devices will have the same external ID (in this case, could be the internally generated user ID by Firebase) so that when a notification is to be sent to this external ID, OneSignal will send it to both devices.

Hope that clarifies the issue and happy Thunking.

---

<div class="post-metadata">

### Author: ![smartnst.tech9d](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@smartnst.tech9d](https://community.thunkable.com/u/smartnst.tech9d)
#### Post date: [January 22, 2021, 9:53am UTC](https://community.thunkable.com/t/doubt-regarding-notifications-to-specific-user/1057868/17 "2021-01-22T09:53:41Z")

</div>

Thanks a lot for clearing that one more last doubt where do I find the external id or is there any way I can call the external id?

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 1:30pm UTC](https://community.thunkable.com/t/doubt-regarding-notifications-to-specific-user/1057868/18 "2024-11-08T13:30:37Z")

</div>


