Push notification on xF2, is this addon trustable

Emre

Formerly ByDost
@Dnyan Deshmukh , Review the steps below
  1. Register https://onesignal.com/
  2. Add a new app button
    1.png
  3. Select platform
    2.png
  4. Site setup
    3.png
  5. Permission Prompt Setup customize
    4.png
  6. Welcome Notification customize
    5.png
  7. save when finished
    6.png
  8. will automatically redirect Web Push configuration. Download file SDK
    7.png
  9. Unzip the OneSignal SDK files. There should be three files:
  10. Add Code to Site. Copy Code
  11. Search templates PAGE_CONTAINER
    Code:
    </body>
    add on top
    Code:
    <link rel="manifest" href="/manifest.json" />
    <script src="https://cdn.onesignal.com/sdks/OneSignalSDK.js" async=""></script>
    <script>
      var OneSignal = window.OneSignal || [];
      OneSignal.push(function() {
        OneSignal.init({
          appId: "Your-ID",
        });
      });
    </script>
  12. Saves and exit
Demo: https://xfdestek.com/
preview
2018-03-08_07-21-11.png

2018-03-08_07-22-01.png

I hope it helped. Good work (y)
 

mkucuksari

Active member
The add on is not published yet but I guess it will be very soon. You can trust the source. It is one of the well known xenforo Turkish support forum.

The desktop version will be free, but the mobile version needs to be purchased.
 

alexp999

Active member
@Dnyan Deshmukh , Review the steps below
  1. Register https://onesignal.com/
  2. Add a new app button
    View attachment 170677
  3. Select platform
    View attachment 170678
  4. Site setup
    View attachment 170679
  5. Permission Prompt Setup customize
    View attachment 170680
  6. Welcome Notification customize
    View attachment 170681
  7. save when finished
    View attachment 170682
  8. will automatically redirect Web Push configuration. Download file SDK
    View attachment 170683
  9. Unzip the OneSignal SDK files. There should be three files:
  10. Add Code to Site. Copy Code
  11. Search templates PAGE_CONTAINER
    Code:
    </body>
    add on top
    Code:
    <link rel="manifest" href="/manifest.json" />
    <script src="https://cdn.onesignal.com/sdks/OneSignalSDK.js" async=""></script>
    <script>
      var OneSignal = window.OneSignal || [];
      OneSignal.push(function() {
        OneSignal.init({
          appId: "Your-ID",
        });
      });
    </script>
  12. Saves and exit
Demo: https://xfdestek.com/
preview
View attachment 170684

View attachment 170685

I hope it helped. Good work (y)
How does this work with no extension, how does the onesignal API know there is a notification from Xenforo software? Surely there needs to be some sort of integration?
 

Dnyan Deshmukh

Well-known member
Exactly, so you'd need a Xenforo extension to trigger the onesignal API. Just adding the code like in your instructions won't do anything.
Adding that code will put a bell icon on your forum.

With current code, you can make peoples to subscribe to your site notifications.

With this system now you can send users automated notification on subscribing.

For further notifications you need to send them manually.

How it works
When user subscribe to notification.
It add the users to onesignal database as per the browser type.

In onesignal control panel, you can see how many subscribers are there according to browser and you can send notification to all users manually from there.


To make it work by adding automation to push notification for alerts and conversation.

It need coding to automate it.

Hope someone will develope it soon.
 

sip

Active member
Adding that code will put a bell icon on your forum.

With current code, you can make peoples to subscribe to your site notifications.

With this system now you can send users automated notification on subscribing.

For further notifications you need to send them manually.

How it works
When user subscribe to notification.
It add the users to onesignal database as per the browser type.

In onesignal control panel, you can see how many subscribers are there according to browser and you can send notification to all users manually from there.


To make it work by adding automation to push notification for alerts and conversation.

It need coding to automate it.

Hope someone will develope it soon.
I know someone who has done this and integrated with XF2 alert system. Costs $150. PM me if interested.
 
Top