Send Push Notification Through Thunkable

I am unable to send push notification through thunkable . Plz Help

1 Like

Do let me know once you get an answer worth satisfying.

Show your work and where you got stuck.

me too I have generated through one signal but its not working

Yes Sending the pics


Can u plz help

See this, here you can find the correct blocks:

1 Like

Plz help

Have you verified your JSON?

Hereā€™s part of what I did:
onesignal-setup

What this does is send the specific phone a message. The UserID is the one generated by OneSignal, though Iā€™m not sure if this happens
You also need to have a header set as: Content-Type: application/json; charset-utf-8

You donā€™t have to have the tags part, if you donā€™t need it remove the last comma before ā€œtagsā€ and add a curly bracket }

I canā€™t remember the JSON needed for the message and title, but it should easy to find.

Also AFAIK, use PUT not POST (though my information is over a year old).

Good luck.

Try this project. You need to supply the AppID for it to work.

This is a working example
https://x.thunkable.com/projectPage/6113727f3925f50012c178b4

Remember that Push Notification has different ID(s) for Android and iOS so use the one that fits your device,

Test can only be done with Android devices.
It does NOT work from the Web Live Test
You need to try it from the mobile and to see it working you might need to download and install the APK.

Happy Thunking!

I got an app id but not working without API

1 Like

I didnā€™t understand what you mean. Please explain further and show your codes.

Thanks a ton , it is working . But it is only sending to one user . i want to send notifications to all users . How to do that

1 Like

The PlayerID is a list. You need to fill the list with all ID(s) you want to send the notification to.

How will i know all player id ā€˜s ?

1 Like

How would you know the email addresses of your app users?
How would you know the phone numbers of your app users?
How would you know the device type of your app users?

It is the same thing about OneSignal PlayerID.

1 Like

I am very new to the coding . Plz help me . I want to send push notifications to all users . I am actually creating an app for blood donation . Plz help

1 Like

You need to collect PlayerID from each user. There is no other way.
If you have a Login Screen then get the PlayerID when the user Login and save it in your database.

It doesnā€™t matter what your app is doing. You have to find a way in your code to read PlayerID of each user and save it to use it later.

I donā€™t believe that is true.

When a user opens the app for the first time and the OneSignal component is installed, the phoneā€™s UUID is automatically added to the default list in OneSignal.

There isnā€™t any interaction required from the end-user.

The app can then ā€œsend itselfā€ notifications via the OneSignal API and the automatically generated PlayerID/ UUID.

Also, @arwaibrahim the word you are looking for is ā€œPleaseā€. ā€œPlzā€ is not a polite part of internet culture (and not standard English).

what youā€™re saying is not polite. the community is not about silly english words. @arwaibrahim just wants this to be solved.

1 Like