[deleted] As temporary solution add vcs to composer json with link https://github.com/NikoVonLas/onesignal-php-api
I forget to solve this. Ill fix this in next version.
[deleted] As temporary solution add vcs to composer json with link https://github.com/NikoVonLas/onesignal-php-api
I forget to solve this. Ill fix this in next version.
NikoVonLas thanks, but I think I'll wait for the next version.
A note about OneSignal: if you want to include this on your website, make sure you understand privacy concerns. OneSignal might be free, but part of their business is based on data collection and profiling of users' activity. Their privacy policy is pretty clear, they collect as much information as possible when using their SDKs, and you allow them to use the data for pretty much anything:
matteocontrini I think its okay for this case. I dont provide any sensitive data.
NikoVonLas You don't have to provide the information for services to obtain it (known example is Google Analytics).
datitisev
I agree if I understand correctly (lang barrier). But i dont know analog to oneSignal.
I think about Firebase, but it may be hard to install for usual user.
NikoVonLas I was just referring your statement, "I dont provide any sensitive data". Companies take what they want, whether you want them to have it or not. . Not complaining about OneSignal specifically.
datitisev Yep thats fact. Especially surprising with modern voices assistants. Recently I read an article that a person logged into a Google account and noticed there are recordings with unrecognized voice commands of the Google Assistant. There were completely different phrases from “ok, google”, and then an advertisement pops up with phrases from these records.
[deleted] New version here
will this send notification when someone reply or like my post?
zedreez Of course, all notifications in header bell also sending thru webpush.
i tried this, but my like / reply notification not sending thru webpush. I use typical site and bell icon prompt. Am I do it wrong?
But, when I try to send notification via OneSignal admin panel, it sent.
Same problem here
zedreez Hmm, can you send any logs?
Subdomain leave empty, if you flarum not on subdomain.
NikoVonLas Thanks but the images are not visible.
My flarum website ist on a subdomain from my website but not from onesignal. So I leave it empty?
Now the images are visible.
Thanks!
So the "Aut Key" is the "Onsignal user key"?
The "Rest Api Key" is the "Onesignal api key"?
And I host my flarum forum on my subdomain of my main URL.
Should I add here the subdomain name inside "Onesignal subdomain"? So only the subdomain name or the full domain?
chrisonline I update post. Uploaded images to imgur.
This link may help with subdomain question.
UPD: Sorry, i wrong.
This link
<head>
<script src="https://cdn.onesignal.com/sdks/OneSignalSDK.js" async=""></script>
<script>
var OneSignal = window.OneSignal || [];
OneSignal.push(function() {
OneSignal.init({
appId: "YOUR_APP_ID",
subdomainName:"YOUR_LABEL"/* The label for your site that you added in Site Setup mylabel.os.tc */
notifyButton: {
enable: true,
},
});
});
</script>
</head>
subdomainName:"YOUR_LABEL"/* The label for your site that you added in Site Setup mylabel.os.tc */
NikoVonLas Thank you very much. Now all is working.
chrisonline You are welcome )
Also, do you use beta-10?