# Probleme Onesignal id

**URL:** <https://community.thunkable.com/t/probleme-onesignal-id/3252587>\
**Category:** Questions about Thunkable X\
**Created:** [October 6, 2024, 7:30pm UTC](https://community.thunkable.com/t/probleme-onesignal-id/3252587 "2024-10-06T19:30:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![seb.falletv5ko1n](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@seb.falletv5ko1n](https://community.thunkable.com/u/seb.falletv5ko1n)\
**Post date:** [October 6, 2024, 7:30pm UTC](https://community.thunkable.com/t/probleme-onesignal-id/3252587/1 "2024-10-06T19:30:50Z")

</div>

Hello community,

I’m experiencing an issue with OneSignal in Thunkable. I’m trying to send a personalized notification to my app users based on variables stored in Firebase. The problem is that the configuration of my block to retrieve the OneSignal ID, which is set during user login, is returning the subscription ID instead of the user ID. I would like some help understanding how to get the user ID so I can send notifications to users based on certain conditions.

Thank you for your help.

---

<div class="post-metadata">

**Author:** ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)\
**Post date:** [October 7, 2024, 3:08pm UTC](https://community.thunkable.com/t/probleme-onesignal-id/3252587/2 "2024-10-07T15:08:28Z")

</div>

Hi seb.falletv5ko1n, welcome to Thunkable! 🎉

Be sure to check out [How to ask Great Questions v2.0](https://community.thunkable.com/t/how-to-ask-great-questions-v2-0/2689983/1), the [Community Guidelines](https://community.thunkable.com/t/community-guidelines/78/8), and our [Getting Started Guide](https://docs.thunkable.com/getting-started/get-started) to make the best of your Thunkable Community experience!

Ideally, we’d need to see some blocks for how you have this set up to be able to help more.

---

<div class="post-metadata">

**Author:** ![brianl](https://avatars.discourse-cdn.com/v4/letter/b/f14d63/32.png) [@brianl](https://community.thunkable.com/u/brianl)\
**Post date:** [October 7, 2024, 7:49pm UTC](https://community.thunkable.com/t/probleme-onesignal-id/3252587/3 "2024-10-07T19:49:30Z")

</div>

I would look into the One Signal API [here](https://documentation.onesignal.com/reference/rest-api-overview). You need the One Signal device Id to send push notifications to certain users.

---

<div class="post-metadata">

**Author:** ![seb.falletv5ko1n](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@seb.falletv5ko1n](https://community.thunkable.com/u/seb.falletv5ko1n)\
**Post date:** [October 8, 2024, 5:15pm UTC](https://community.thunkable.com/t/probleme-onesignal-id/3252587/4 "2024-10-08T17:15:44Z")

</div>

Thank you very much for your answers 😊, my problem is solved. I wanted to send push notifications from a .js file, and I thought I would have to retrieve the user ID instead of the subscription ID. Fortunately, with the subscription ID my code works and sends notifications to the user based on variables stored in Firebase.

Thanks again for your responses. If you know how to delete users database when user deletes their account, I would appreciate the solution 😊

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [January 6, 2025, 5:15pm UTC](https://community.thunkable.com/t/probleme-onesignal-id/3252587/5 "2025-01-06T17:15:59Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
