@aokp Are you planning on publishing where you got to with v4?
Which news forum software did you decide on?
@aokp Are you planning on publishing where you got to with v4?
Which news forum software did you decide on?
@aokp Looking forward to it
@MBFTOM There is nothing stopping the onesignal plugin to work with iOS but there is no iOS WebView app to make use of it yet.
@meetdilip Yes, although you need to configure nodebb-plugin-onesignal on your NodeBB install too.
@kenygamer It's a native android application to allow viewing of a NodeBB compatible forum.
@Braulio-Cesar-Holtz-Ribeiro The android app integration is not complete yet, so the automatic registration of the player_id wont work with the version @AOKP has compiled. Hence the need to manually populate player_id's using the REST endpoint exposed by nodebb-plugin-onesignal
@Braulio-Cesar-Holtz-Ribeiro Did you use the REST api exposed by the plugin to add the playerid from one signal as explained in my original post?
@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.
@PitaJ said in Best way to get base URL from client side JS:
config.relative_path
So would I simply take location.origin + config.relative_path as the root to the NodeBB install?
I'm in the middle of writing a NodeBB plugin. Is there anything immediately available within the client side JS that will allow me to get the base URL for ajax calls or should I simply take it from the window object?
Thanks
@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.
@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 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
@Braulio-Cesar-Holtz-Ribeiro Did you access the onesignal admin via menu after login, or directly enter the url?
Take a look here.
@AOKP OK, I've had a first crack at a nodebb-plugin-onesignal notifier. You can give it a try here. GitHub - CCob/nodebb-plugin-onesignal: Allo...
NodeBB Community (community.nodebb.org)
First attempt. Not ready for production use yet but can be tested if you are a developer or know what you are doing with REST calls.
@AOKP OK, I've had a first crack at a nodebb-plugin-onesignal notifier. You can give it a try here.
Allows NodeBB to interface with the OneSignal service in order to provide push notifications via OneSignal, originally forked from nodebb-plugin-pushbullet - CCob/nodebb-plugin-onesignal
GitHub (github.com)
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
I'd be happy to take a look at doing this.
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?
Hi,
I'm writing a plugin that uses the composer:autocomplete:init
event within client side javascript code. I have a problem within the replace functor. It seems that it doesn't support a callback mechanism to allow asynchronous jsonp calls to be made within the replace functor. I need to do a further REST request on the selected data which can only be achieved by doing a jsonp request. Is there another way to achieve the replace functionality in an asynchronous fashion?
Thanks