Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Web Push notifications using OneSignal Details »
Web Push notifications using OneSignal
Mod Version: 1.0.1, by iA1 (Coder) iA1 is offline
Developer Last Online: Sep 2018 I like it Show Printable Version Email this Page

vB Version: 4.2.x Rating: (3 votes - 3.33 average) Installs: 7
Released: 11 Jul 2018 Last Update: 12 Jul 2018 Downloads: 21
Supported Uses Plugins Additional Files Re-usable Code Translations  

Description:

OneSignal has an API that allows us to send unlimited web and push notifications for FREE. When I came to know about it, I spent several days and months searching for compatible plugins for vB4. Finally decided to learn and create my own based on pierce's similar mod for Xenforo.

Push notifications is a great way to keep your members engaged. It keeps driving them back to your site. This mod works great on mobile browsers as well.

This is the lite version which allows you to send web push notifications to your users whenever:
  1. someone replies on their subscribed threads
  2. sends them a PM
  3. likes one of their posts (dbtech thanks)

Installation:
  1. Register an account at OneSignal.com
    • Click on Add a new app to register your forum there
    • Select Web Push as the platform
    • Configure Web Push by selecting Typical Site and enter you forum details
    • Add at least one prompt and complete the remaining setup there. Leave most of the options as default. Only change where necessary.
    • After you click Save, you will get a few files to download.
    • Download those files, extract them and upload them to your forum's root directory.
    • There is another section on the same page asking you to add code to your site. DO NOT add that code yet. It is automatically done when you install this product.
  2. Download attached zip file. Upload the file functions_OneSignal.php under /includes directory
  3. Install the product using the xml file
  4. Go back to onesignal.com, under settings, click on Keys & IDs.
  5. Copy these keys and paste them in the settings in admincp.


Disclaimer:
I am not associated with onesignal in any way. This is just something that I found useful for my forum and wanted to share with everyone else.

If I get enough support then I plan to add notifications for moderators' actions and for quotes and tags as well.


Change log:
1.0.1 - Fixed Table Prefix bug
1.0.0 - Initial Release

Download Now

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
End-User Options Roost Web Push burtonmiller vBulletin 4.x Add-ons 2 29 Jul 2014 18:53

Comments
  #2  
Old 11 Jul 2018, 14:39
iA1 iA1 is offline
 
Join Date: Jul 2018
Screenshots:


Subscribed thread notifications


on Mobile (Android)




on desktop/laptop




on MAC OS




New PM notification




Post like notification



Last edited by iA1; 11 Jul 2018 at 19:07.
Reply With Quote
  #3  
Old 11 Jul 2018, 17:46
scottkoz20 scottkoz20 is offline
 
Join Date: Jan 2016
Real name: Scott
This looks extremely interesting

Last edited by scottkoz20; 11 Jul 2018 at 17:51.
Reply With Quote
  #4  
Old 11 Jul 2018, 19:09
iA1 iA1 is offline
 
Join Date: Jul 2018
Originally Posted by scottkoz20 View Post
This looks extremely interesting
Glad you liked it. Screenshots are added in the above post.
Reply With Quote
  #5  
Old 11 Jul 2018, 19:54
scottkoz20 scottkoz20 is offline
 
Join Date: Jan 2016
Real name: Scott
something that I noticed is that the server load spikes when this is active - testing more
Reply With Quote
  #6  
Old 11 Jul 2018, 19:58
iA1 iA1 is offline
 
Join Date: Jul 2018
Originally Posted by scottkoz20 View Post
something that I noticed is that the server load spikes when this is active - testing more
How big is your forum and how many users are active simultaneously?
Reply With Quote
  #7  
Old 12 Jul 2018, 16:14
IggyP IggyP is offline
 
Join Date: May 2012
looking forward to testing this, not sure when i will be able to, but the other mod like this i tried had some fatal conflicts somewhere with other mods or whatever i was using.
Reply With Quote
  #8  
Old 14 Jul 2018, 00:11
scottkoz20 scottkoz20 is offline
 
Join Date: Jan 2016
Real name: Scott
Originally Posted by scottkoz20 View Post
something that I noticed is that the server load spikes when this is active - testing more
i can't say with certainty that my load spike is your mod. I'll watch it though
Reply With Quote
  #9  
Old 15 Sep 2018, 14:41
carik carik is online now
 
Join Date: Jul 2010
Good afternoon.
I installed the mod, did everything according to the instructions, notifications come only from the themes of one forum, from other forums it comes only to e-mail. What could be the problem? Thank you!
Reply With Quote
  #10  
Old 15 Sep 2018, 15:08
carik carik is online now
 
Join Date: Jul 2010
sends notifications only from the topic, in English. Of those in the Russian language does not send. How to solve a problem? Thank you!
Reply With Quote
  #11  
Old 15 Sep 2018, 15:26
carik carik is online now
 
Join Date: Jul 2010
Even if the topic name in English, and the text of the response in Russian, the notification is not sent.
Reply With Quote
  #12  
Old 15 Sep 2018, 19:54
iA1 iA1 is offline
 
Join Date: Jul 2018
Originally Posted by carik View Post
sends notifications only from the topic, in English. Of those in the Russian language does not send. How to solve a problem? Thank you!
I am not sure why it doesn't work for Russian. Can you check your OneSignal control panel for message logs and see if there is any error listed there?

I have tested this with another language and it worked fine for me without any issues.
__________________
Get your own favorite style made responsive for vBulletin 3 and vBulletin 4.
Reply With Quote
  #13  
Old 15 Sep 2018, 20:03
carik carik is online now
 
Join Date: Jul 2010
Originally Posted by iA1 View Post
I am not sure why it doesn't work for Russian. Can you check your OneSignal control panel for message logs and see if there is any error listed there?

I have tested this with another language and it worked fine for me without any issues.
thanks for the answer.
if I send test messages from the OneSign panel, there are no errors. When I create a topic on the forum, the name in English, I write in it in English, there are no problems, push message comes. I think that the error with the processing of php mod ... or the encoding does not understand. I do not see any errors in the logs. And I tried to translate phrases in a php file, for example, "replied to", immediately ceases to send push messages.
Reply With Quote
  #14  
Old 15 Sep 2018, 20:25
carik carik is online now
 
Join Date: Jul 2010
and perhaps when sending push to convert the encoding cp1251 to utf-8? I see that the problem is this. Thank you.
Reply With Quote
  #15  
Old Yesterday, 15:22
carik carik is online now
 
Join Date: Jul 2010
Originally Posted by iA1 View Post
I am not sure why it doesn't work for Russian. Can you check your OneSignal control panel for message logs and see if there is any error listed there?

I have tested this with another language and it worked fine for me without any issues.
And can I make it so that a notification without nicknames, topic names and messages is sent? The usual notification is a "new answer", or "a new personal message". And click on the link to send a link to a topic or personal message.
That would be the right decision! Moreover, I have a very small notice on the 27 "screen, and it's easier for me to click and read on the site." It's also more convenient for me to follow the link on a mobile phone.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 3 (2 members and 1 guests)
MarkFL, carik
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 20:21.

Layout Options | Width: Wide Color: