Send Push Notification From App using OneSignal API without Extension

@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

did you solve this issue, I need a solution for this

same issue

Wow thanks alot for the guideā€¦ but how to send notif to spesific user?

1 Like

Great job! thanx @gopi

I honestly donā€™t understand why @kodular doesnā€™t fix this problem at once. I think the community is doing much more than @kodularStaff.

3 Likes

Am not able to download the php fills

not working for me.not even show any error msg