By Lee Currie on Thursday, 16 August 2018
Replies 1
Likes 0
Views 1.1K
Votes 0
Hello guys
Hope you are all having a wonderful day
I have created a webview mobile app.
I would like to integrate the notifications sent from onesignal the same way that the module
"Web push notifications" works from stackideas.
https://stackideas.com/apps/item/3355-web-push-notifications
By the way, great work @mark :-)
I would really appreciate if you could maybe give me some links to tutorials or a little point in the right direction.
I I have already installed onesignal into my app and I can send general notifications from onesignal to app
But I would like it, as said above, to be fully integrated the same way as the module "Web push" notifications works.
that you can have a look at if you like
https://play.google.com/store/apps/details?id=com.seesiena.Speak_Easy_English_copy

I am still learning, so if anyone would like to contribute alternatives or other methods, I would be happy to learn
Thank you
Hi there,

Basically, you can refer the triggering part that has been used in the app one signal and to be notify to the onesignal.
Let see in the file:
.../media/com_easysocial/apps/user/onesignal/onesignal.php
For instance you want to trigger when system notification is happened, go to the function onSystemNotificationAfterCreate where you need to pass in the $target(the user that will receive the notification) and $option(array of title, content,permalink and icon) to the notify function which is where the onesignal will notify to the user.
I believe the notify part to onesignal you can refer in here:
https://documentation.onesignal.com/reference#section-example-code-create-notification

*As this ticket is more to tutorial, I've moved this to a proper category (tutorial)
·
Friday, 17 August 2018 11:46
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post