Skip to content

NodeBB WebView App v3

NodeBB Plugins
47 13 51.4k 5
  • wrote on last edited by AOKP
    #1

    After more than 1 year its time to present the third version of the NodeBB WebView App.
    Down below you can see an old screenshot, however not much has changed since then (interface sided).

    NodeBB WebView

    Features

    • OneSignal push notifications
    • Upload/Download support
    • Analytics
    • AdMob
    • Full JavScript support
    • Multiple colors
    • Sidebar support

    Credits

    @CCob

    Download

    Sample APK
    Source code

    Documentation

    GitHub Wiki

    F.A.Q.

    Q.: I fail to compile the app, can you help me?
    A.: Open an issue ticket on GitHub. I will ignore ANY personal messages related to issues with the webview app here on the forum.

    Q.: Can you compile the app for me?
    A.: Not for free.

    Q.: Can I contribute to your code?
    A.: Of course, any contributions are welcome and will be credited!

  • wrote on last edited by
    #2

    Great stuff. I've been having a play around with it. Seems to be working very well. One question, is the OneSignal integration only for push notifications sent from OneSignal itself, or does it work with notifications sent from NodeBB too, e.g. response to topic?

  • Great stuff. I've been having a play around with it. Seems to be working very well. One question, is the OneSignal integration only for push notifications sent from OneSignal itself, or does it work with notifications sent from NodeBB too, e.g. response to topic?

    wrote on last edited by
    #3

    @CCob it only works with notifications send from OneSignal. However, it should be possible to integrate OneSignal with NodeBB and then send notifications from NodeBB to OneSignal and then onto your phone.

  • wrote on last edited by
    #4

    Bumping this.
    Are there any features missing, improvements wished, etc.?

  • wrote on last edited by Pappmann
    #5

    Hello,

    webview app works fine, but nodebb notification sounds not working correctly only after playing it manually and the app was not staying in background.

  • Hello,

    webview app works fine, but nodebb notification sounds not working correctly only after playing it manually and the app was not staying in background.

    wrote on last edited by
    #6

    @Pappmann thanks for the feedback. However, please keep in mind that the app stays open depending on the RAM management of your device.

  • @Pappmann thanks for the feedback. However, please keep in mind that the app stays open depending on the RAM management of your device.

    wrote on last edited by Pappmann
    #7

    @AOKP Okay, is there a possibility to make Desktop Notifications working?

  • @CCob it only works with notifications send from OneSignal. However, it should be possible to integrate OneSignal with NodeBB and then send notifications from NodeBB to OneSignal and then onto your phone.

    wrote on last edited by CCob
    #8

    @AOKP OK, I've had a first crack at a nodebb-plugin-onesignal notifier. You can give it a try here.

    Ignore the README, it was forked and modified from the pushbullet plugin and I haven't got around to updating the README and publishing on npm yet.

    You need to populate your OneSignal app_id and API key within the admin section. You can get this from the OneSignal website under your applications Keys & Id section

    I haven't done the Android integration yet, but you can get your player_ids from the OneSignal site here

    https://onesignal.com/apps/*your_app_id*/players

    I have exposed a REST API for adding player id's at /api/me/onesignal/devices. An authenticated POST with either a valid cookie or bearer token from the nodebb-plugin-write-api will work with the following JSON body

    {
    	"player_id" : "player-id-here"
    }
    

    Once this has been completed, notifications should work which you can test by going to the OneSignal settings within your profile.

    Appreciate any feedback

  • wrote on last edited by
    #9

    I installed this plugin, moving the files to node_modules (I could not get through npm), and I activated the plugin, but I can not access, the following message appears

    /admin/onesignal Not Found
    You seem to have stumbled upon a page that does not exist. Return to the home page.
    
  • I installed this plugin, moving the files to node_modules (I could not get through npm), and I activated the plugin, but I can not access, the following message appears

    /admin/onesignal Not Found
    You seem to have stumbled upon a page that does not exist. Return to the home page.
    
    wrote on last edited by
    #10

    @Braulio-Cesar-Holtz-Ribeiro Did you access the onesignal admin via menu after login, or directly enter the url?

  • wrote on last edited by
    #11

    @CCob said in NodeBB WebView App v3:

    Did you access the onesignal admin via menu after login, or directly enter the url?

    Also does not appear in the menu, the plugin is only enabled.

  • @CCob said in NodeBB WebView App v3:

    Did you access the onesignal admin via menu after login, or directly enter the url?

    Also does not appear in the menu, the plugin is only enabled.

    wrote on last edited by
    #12

    @Braulio-Cesar-Holtz-Ribeiro said in NodeBB WebView App v3:

    @CCob said in NodeBB WebView App v3:

    Did you access the onesignal admin via menu after login, or directly enter the url?

    Also does not appear in the menu, the plugin is only enabled.

    Sounds like the plugin is not installed correctly. I noticed you said you copied into the node modules directory. I don't believe this will install dependencies. Try using npm link *path* where path is a separate directory outside of NodeBBC where the plugin directory is

  • @CCob said in NodeBB WebView App v3:

    Did you access the onesignal admin via menu after login, or directly enter the url?

    Also does not appear in the menu, the plugin is only enabled.

    wrote on last edited by
    #13

    @Braulio-Cesar-Holtz-Ribeiro Also before you use npm link make sure you remove the manually copied folder from node_modules first

  • @Braulio-Cesar-Holtz-Ribeiro Also before you use npm link make sure you remove the manually copied folder from node_modules first

    wrote on last edited by
    #14

    @CCob I have run the npm link nodebb-plugin-onesignal- and the only response I have is "/opt/bitnami/nginx/html/node_modules/nodebb-plugin-onesignal -> /usr/lib/node_modules/nodebb-plugin-onesignal -> /opt/bitnami/nginx/html/nodebb-plugin-onesignal"

  • @CCob I have run the npm link nodebb-plugin-onesignal- and the only response I have is "/opt/bitnami/nginx/html/node_modules/nodebb-plugin-onesignal -> /usr/lib/node_modules/nodebb-plugin-onesignal -> /opt/bitnami/nginx/html/nodebb-plugin-onesignal"

    #15

    @Braulio-Cesar-Holtz-Ribeiro you have to do it in the nodebb director.

  • @CCob I have run the npm link nodebb-plugin-onesignal- and the only response I have is "/opt/bitnami/nginx/html/node_modules/nodebb-plugin-onesignal -> /usr/lib/node_modules/nodebb-plugin-onesignal -> /opt/bitnami/nginx/html/nodebb-plugin-onesignal"

    wrote on last edited by
    #16

    @Braulio-Cesar-Holtz-Ribeiro As @PitaJ suggests, it needs to be run from the NodeBB directory. I also suggest you get the latest version of the plugin as I pushed a new version last night that is compatible with older nodejs engines.

  • Swedes
    wrote on last edited by Jenkler
    #17

    Can I browse all nodebb forums with this app (playstore) or is it only for community.nodebb.org? Cool projekt BTW

  • Can I browse all nodebb forums with this app (playstore) or is it only for community.nodebb.org? Cool projekt BTW

    wrote on last edited by
    #18

    @Jenkler It's not on play store. It's designed to be taken and modified to suit your own forum URL's. So the demo version only works with the NodeBB community version.

  • Swedes
    wrote on last edited by
    #19

    Ok, but maybe we can add configuration to the app and in the future use it for private forums like Tapatalk 🙂

  • wrote on last edited by
    #20

    I made some tests, the plugin is installed in the forum and I configured the key and id of the application. On Android I tested OneSignal by sending manual messages (in their system) and received it normally.
    The issue is that if I send the message from a user (test user for admin user), in the Android application logged in with the admin account, I do not get the message notification, I tried also responding to a post, as a normal interaction
    Is there anything else necessary for the correct functioning of the notification plugin?


Suggested Topics


  • Make nodebb-plugin-spoilers compatible with v3

    NodeBB Plugins spoiler
    21
    0 Votes
    21 Posts
    9k Views
    crazycellsC
    thanks @baris , I tested and it works but for harmony theme, using data-format leaves an empty space behind, so I changed it to aria-label to remove the whole button... For those who would like to hide some buttons of the composer can use this CSS code: .composer .composer-container .formatting-bar .formatting-group { [aria-label="Code"], [aria-label="Left align"], [aria-label="Center align"], [aria-label="Right align"], [aria-label="Justify"], [aria-label="Grouped code"] { display: none; } }
  • nodebb-plugin-node-ldap crashing NodeBB

    NodeBB Plugins
    7
    0 Votes
    7 Posts
    3k Views
    Z
    I'm using postgresql and I can't find these keys anywhere
  • NodeBB Mermaid Parser - nodebb-plugin-mermaid

    NodeBB Plugins
    2
    8 Votes
    2 Posts
    3k Views
    PitaJP
    Ooooooooooh very nice work!
  • [nodebb-widget-lunbo] hello nodebb ~

    NodeBB Plugins
    5
    3 Votes
    5 Posts
    4k Views
    刘开刘
    @psychobunny i have changed the theme a lot since then, check careerfore to visit our site.
  • [nodebb-plugin-latch] Latch for NodeBB

    NodeBB Plugins
    4
    2 Votes
    4 Posts
    3k Views
    E
    @julian said: @jarey Yes, I noticed that too. I submitted a pull request to fix the client-side unresponsiveness if APPID and SECRETKEY aren't set. To-do Probably some translates as we use spanish on our plugins I submitted pull requests for that one too accepted