i have looked through at every single post on this community and tried all of them can any body please helo i want to send out a push notification to a different user when i click a button please can someone just show the simplest way in blocks to do so i can send my tests out through the onesignal website so i know that works
Hello @biltongconnectionapp
To send a notification to a specific user you need to use a Web API. In these API settings, you have to add these headers.
Also, you need to use the body of the Web API for adding the details of the call. Please see the screenshot.
Thank you very much for replying just to clear up in the setup of the Web_API the first
Property is set to " content-type"
and its value is the “application/json”
and the Second one “Authorization”
and its Value is the “Rest API Key” from OneSignal Dashboard
The app_id under the "Get property of object is “OneSignal App ID”
and the “include_player_ids” is the id of my second phone that i got by using the “push notification user id” BLOCK
This is all Held with in the "CALL web_API’s Post Block "in the then do section
im getting a Error “Network request failed”
I am Realy thank full for the reply i am trying to get this working but its not playing along as soon as i have this working 100 % i will vreat a full Guide with all the credit going to you so other noobs like me can get things working
Hello @superqueing5v53
Thank you for sharing more information and screenshots.
Some things you need to change in your blocks:
- move the set API blocks outside, above the call block
- Set the “app_id” directly with the text from Onesignal.
- Set the “include_player_ids” as a list and then connect the push notification user id”
Here is an example:
All the push notifications say Thunkable At the top next to the time ago it was sent is there a way to remove it i will be upgrading soon but just want to know for now