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.3.5, by iA1 (Coder) iA1 is offline
Developer Last Online: Jul 2019 I like it Show Printable Version Email this Page

vB Version: 4.2.x Rating: (3 votes - 3.33 average) Installs: 18
Released: 11 Jul 2018 Last Update: 07 May 2019 Downloads: 85
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.


Download latest version: 1.3.0
If upgrading from previous version, replace the functions file as well.

Change log:
1.3.5 - Typo fixed
1.3.0 - Separated multiple consecutive notifications for different threads
1.2.0 - Added privacy for replies in private sections and
Subscribe button at the end of posts
1.1.0 - Fixed issue with sub-forum
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

  #61  
Old 04 Jan 2019, 09:30
viverevalencia viverevalencia is offline
 
Join Date: Apr 2008
PM does not receive notifications

Hi there!

I'm testing your plugin, you did a good job!

thanks for sharing it with the community

All functionalities for me work well, except PUSH notifications when someone sends a PM to another user with the application installed.

Do you have any idea why PM notifications don't work?

Regards
Reply With Quote
  #62  
Old 04 Jan 2019, 10:38
viverevalencia viverevalencia is offline
 
Join Date: Apr 2008
Originally Posted by viverevalencia View Post
Hi there!

I'm testing your plugin, you did a good job!

thanks for sharing it with the community

All functionalities for me work well, except PUSH notifications when someone sends a PM to another user with the application installed.

Do you have any idea why PM notifications don't work?

Regards
Hi, I've finally been able to solve the problem.

I deleted line 116 from the file product-onesignal_notifications.xml

And it's worked.
Reply With Quote
  #63  
Old 04 Jan 2019, 19:49
iA1 iA1 is offline
 
Join Date: Jul 2018
Originally Posted by viverevalencia View Post
Hi, I've finally been able to solve the problem.

I deleted line 116 from the file product-onesignal_notifications.xml

And it's worked.
Do you mean this line?
$contentType = 'pm';

or this line?
if ($vbulletin->options['iA1_onesignal_notif_active'])
__________________
Make your forum mobile friendly and get app-like features:
App-like icon on your smartphone homescreen
Responsive style - for vBulletin 4.2.x as well as vB 3.8.x - Contact for custom work
Push notifications for new replies, likes and PM
Reply With Quote
  #64  
Old 07 Jan 2019, 11:33
viverevalencia viverevalencia is offline
 
Join Date: Apr 2008
Originally Posted by iA1 View Post
Do you mean this line?
$contentType = 'pm';

or this line?
if ($vbulletin->options['iA1_onesignal_notif_active'])
this one -> if ($vbulletin->options['iA1_onesignal_notif_active'])
Reply With Quote
  #65  
Old 14 Jan 2019, 15:32
bilgicc bilgicc is offline
 
Join Date: Jan 2008
Originally Posted by viverevalencia View Post
this one -> if ($vbulletin->options['iA1_onesignal_notif_active'])
Deleted this code and only one time notification arrived. After the notification doesn't come when the PM arrives.
__________________
Keyfi Müzik - Müzisyen Forumları
Reply With Quote
  #66  
Old 25 Jan 2019, 11:43
iA1 iA1 is offline
 
Join Date: Jul 2018
Update 1.3.0

Bug fixed for PM notifications
Separated multiple consecutive notifications from different threads
__________________
Make your forum mobile friendly and get app-like features:
App-like icon on your smartphone homescreen
Responsive style - for vBulletin 4.2.x as well as vB 3.8.x - Contact for custom work
Push notifications for new replies, likes and PM
Reply With Quote
  #67  
Old 26 Jan 2019, 22:38
gnrx gnrx is offline
 
Join Date: Apr 2009
Originally Posted by iA1 View Post
Update 1.3.0

Bug fixed for PM notifications
Separated multiple consecutive notifications from different threads
Thanks for your hard work!!
Reply With Quote
  #68  
Old 04 Feb 2019, 21:19
Scalemotorcars's Avatar
Scalemotorcars Scalemotorcars is offline
 
Join Date: Mar 2006
Real name: Daniel
Onesignal never gave me files to download. All I got was the script to add in the header that the instructions say not to include. What did I miss?
__________________
ScaleMotorcars.com Large scale model building at its best. Check it out.
Reply With Quote
  #69  
Old 04 Feb 2019, 22:13
Scalemotorcars's Avatar
Scalemotorcars Scalemotorcars is offline
 
Join Date: Mar 2006
Real name: Daniel
If you didnt get the files I found them listed on the sites help page here.

https://documentation.onesignal.com/...-onesignal-sdk

I finally got it the 1st notification. Now to see if it keeps working.
__________________
ScaleMotorcars.com Large scale model building at its best. Check it out.
Reply With Quote
  #70  
Old 10 Feb 2019, 16:42
Kane@airrifle's Avatar
Kane@airrifle Kane@airrifle is online now
 
Join Date: Jun 2011
Real name: Kane
Get this error when enabling this mod.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #71  
Old 10 Feb 2019, 18:27
Mathsman Mathsman is offline
 
Join Date: Aug 2010
vBulletin 4.2.2 Patch Level 6 i use.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I get the error on the page.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


I am getting this issue only in admin user.


---------------------------------------------------------------------

Also, I'm just going to notification in pm's. When quotes are made and other incidents do not go to the notification. I wonder if I'm missing something.

Last edited by Mathsman; 11 Feb 2019 at 18:42.
Reply With Quote
  #72  
Old 04 May 2019, 01:50
haithngn haithngn is offline
 
Join Date: Nov 2017
4.2.5 does not work, please help to check
Reply With Quote
  #73  
Old 05 May 2019, 13:25
Mark.B Mark.B is offline
 
Join Date: Feb 2004
Originally Posted by haithngn View Post
4.2.5 does not work, please help to check
YOu need to provide full details of the problem.

"does not work" says absolutely nothing that can be used to assist.
__________________
MARK.B (Member of the vB Support Team)
Reply With Quote
  #74  
Old 07 May 2019, 13:50
haithngn haithngn is offline
 
Join Date: Nov 2017
I installed this Mod into my vbb site also uploaded the OneSignal SDK files on the root directory of that site.
Then, in the Setiing page 'Web and Push Notifications using OneSignal'
I set Product Is Active: Yes
Provide OneSignal AppID, Authentication Key

But, I do not see any permission alert when I opened my vbb site on the Google Chrome browser.

At the footer I saw a copyright text Web Push Notifications by iA1.

Please give me a help ?
Reply With Quote
  #75  
Old 07 May 2019, 18:25
iA1 iA1 is offline
 
Join Date: Jul 2018
Originally Posted by Kane@airrifle View Post
Get this error when enabling this mod.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
Please install the updated version 1.3.5. I found and fixed a typo in one of the plugins.

Originally Posted by haithngn View Post
Please give me a help ?
PM me your domain name and a test user account.

Originally Posted by Mathsman View Post
vBulletin 4.2.2 Patch Level 6 i use.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I get the error on the page.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


I am getting this issue only in admin user.


---------------------------------------------------------------------

Also, I'm just going to notification in pm's. When quotes are made and other incidents do not go to the notification. I wonder if I'm missing something.
PM me your domain name and a test user account.
__________________
Make your forum mobile friendly and get app-like features:
App-like icon on your smartphone homescreen
Responsive style - for vBulletin 4.2.x as well as vB 3.8.x - Contact for custom work
Push notifications for new replies, likes and PM
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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


New To Site? Need Help?

All times are GMT. The time now is 13:27.

Layout Options | Width: Wide Color: