Send Push Notification From App using OneSignal API without Extension

Thank you for your guide. :+1:

2 Likes

Great and simple guide thanks for the guide.

1 Like

Nice Guide…
Thanks for your contribution to the community…
:slightly_smiling_face:

1 Like

Notification not received on my device

@themaayur you wrongly defined API ID and API KEY.

@themaayur

//Your OneSingal APP ID
define("APP_ID", "YOUR_APP_ID_HERE");
//Your Onesignal API KEY
define("API_KEY", "YOUR_API_KEY_HERE");

Enter your API ID in the place of YOUR_APP_ID_HERE
Enter your API KEY in the place of YOUR_API_KEY_HERE

1 Like

Ohhh, Got it thanks…I will check it out.

I have done that it’s showing error


But I have entered content in textbox.

@themaayur message should be any English language

As u can see in above screenshot everything is in English language.

@themaayur please check your blocks

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.