Send Push Notification From App using OneSignal API without Extension

Here are the blocks.

@themaayur check your set web1 url block it should be contents not content

Ohh Sorry my mistake, Btw Thanks for support.
But why is it showing white dot in icon. what if i will the default bell icon.

@themaayur if you want to use default bell icon make small_icon value to empty

If i want to fix a small icon so that i do not have to set it every time then what should i do?

1 Like

Look at this topic

@gopi Congratulations !!!

1 Like

thanks you really working.

1 Like

Thank you for your commitment.
But I wonder here, why do I need an external host?
Couldn’t I just use the OneSignal API directly?
Or did I not understand the proposal for this extension?

Thanks.

This guide was old one , and many updates push notifications made after that. Directly you can send now push notifications now. But this one was really helpful on that time.

2 Likes

It’s not a extension it’s a guide.

To automate the process( as I understood ), here instead of going to their website you can do it form the app. Which is beneficial sometimes.

1 Like

With this script placed on the host, you create a screen-app on Kodular to send notifications instead of having to use the site, use your app.

2 Likes

working but not all time

Why does it shows any error?
Explain it more breafly

I am having the same error

[image]Screenshot by Lightshot

@empreendedorismo You incorrectly defined APP_ID and API_KEY
it should be defined like this Send Push Notification From App using OneSignal API without Extension - #14 by gopi

Observe the error messages.
What did she tell you?
Did you try anything to avoid the messages? Checked the content of the variables,?

Did You try put “?” Before heading parameter ?
Url www. site.com/sendpush.php?

( Resolved with this suggestion in the private message.)

Please help me.
I’ve made it but there is a message like this.
image
I’ve created 2 users as an experiment.

this method works great … but how to add more than one App ID and Rest Key just to creat a universal Onesignal App Sender? …

actually I need to add the APP ID and Rest Key in the app it self … and not to create a sendpush file for every app
@gopi