Sending Notification to Specific User with Onesignal

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

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

Haha yes
I will try.

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.

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.

1 Like

@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

And screenshot of Design

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

2 Likes

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

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
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

And there is no AUTHORISATION_CODE.
Am I complety misunderstang everything???

1 Like

Is it asking for the Api key?

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

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

Hmmm Im sending this. image
Do I need something more then?

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.

1 Like

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

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

image

1 Like

You also need “”. for the users Id.

[“USERID_blablabla”]

Thanks a million to 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?)

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!

9 Likes

This is great, thank you both so much!!! :slight_smile: :slight_smile: :slight_smile: 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?

1 Like

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

1 Like

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

3 Likes

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

1 Like

Vaiper_watafai,

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?

1 Like