Push notifications when button click

Hello everyone

I want to know the way to make the app send a push notifications for specific user when another specific user button click … how can i do??

Its like a question an user put … and when the other user submit the answer i want to push a notification to the question writer.

I made one signal and firebase setup, and found the push notification user id block in the app, and i know the way to send push notifications from one signal to the app users manually… but my question is how to do it automatically depending on a button click.

When reviewing topics here, i found some informations but i cant understand clearly the steps to do.

One of them is from mr @matt_conroy

But i cant understand it … and can’t understand the “object” block and how to use it.

Thanks for all

If you are unfamiliar with the object block, I would recommend starting with the objects doc. Otherwise if you try to jump into custom push notifications right away, it will be very difficult.

Thanks @brianl for your help

Its necessary for my app … i have to jump into … so i need a help , once I get the help i will work hard on it.

Are you familiar with the One Signal API Doc?

I’m trying to … but it explains coding with android studio not blocks

@matt_conroy
@ioannis

Coud you help me please??

Is there any help??

For anyone in our Community to be able to help, you’ll have to show us what work you have done. We are not here to do the work for you. If you are needing someone to build your project out, please post in Freelance / Paid Help Opportunities

Please see this post How to ask Great Questions v2.0

@matt_conroy

If you seen my question as a request to build my projet … you are wrong.

I just want an explain for how to use thunkable blocks to achieve what it made for.

I mentioned you because I’ve seen those block in your answer for a topic , and i think that you are one of the thunkable team.

So … don’t be angry … don’t answer, and it won’t stop there.

Return to the question… can any member give a help for this?

If the above screenshot is not working for you, what is the error label saying?

The problem is how to get these blocks?

When i click the push notification, i just see the first block only “get user notification id”

And also the push notification component isn’t found on the design screen

Push Notifications do not have a UI component in our Drag and Drop interface. See our Docs for more information on how to add them:

Please note:
Push Notifications are available on Thunkable Builder and Advanced plans. While all Creators can add Push Notifications to their projects and live test them in their Android apps, only Creators on the previously mentioned plans can download and publish apps with Push Notifications. See our pricing page for more details.

I followed the "Push Notification Blocks | Thunkable Docs " … then i only got the "push notification user id " block … no other blocks added

This is an old screenshot.

The push notification user ID block is the only one available currently.

So … with the latest update of thunkable, i cant send push notifications from thunkable app when button click??

You’ll have access to the block and can set everything up but will need a paid account for the feature to be active in your published app.

I know that … but how can I set it up with just one block “push notifications user id” …i didn’t find any way to set it up even in thunkable doc.

For “regular” push notifications, it is done through One Signal. You can see how that is done here.

For the custom push notifications, that is done through the One Signal API and the Web API blocks.

If you want to do custom push notifications, you will have to read the One Signal API doc and understand how to make an API call. The screenshot that was shared with the example can give you an idea but if you to make one that fits your needs, you will have to figure out the logic.

1 Like

Thanks @brianl for your reply… I’ll review it and come back soon.