Today I tried to add Push Notifications to my website using OneSignal...
I copied the given HTML in the head injections tab and added the OneSignal App ID and Rest API Key in the Settings>System>Push Notifications.
Now when I send a new push from OneSignal dashboard it works but una notification doesn't show...
What am I doing wrong?
Comments
M
Did you install the "files" to the root of your site? I can help you get started if you've not been able to get it setup.
I couldn't run my site without the push notifications!
Should work if you get it right, it works for me
Hello Leonardo Zen !
No need to copy the One signal code and put it into injections. It's just enough to fill the OneSignal App ID and REST API Key in the Studio->Settings->Push notifications area.
L
did I have to add some additional files in the root of my site? 😅
If so, could you please tell me what files and where should I put them?
L
Ok, removed the code from injections and it's the same as before... it works for messages I write from the OneSignal dashboard but not for the Una notifications (f.e.: "Mark has befrended you")
No need to add any files more. About your situation - try to clear the caches via Studio->Settings->Cache area and refresh your browser.
L
I'm not sure but I think that cache was already disabled...
So what should I do now to make push notifications work?
S
I'm having the same problem. how did you fix it?
L
Sadly I'm still trying to fix it 😭, the first who has success will write the solution here 😉
G
Have you fixed this? I have the exact problem