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?
Braulio Cesar Holtz Ribeiro
Posts
-
NodeBB WebView App v3 -
NodeBB WebView App v3@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"
-
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.
-
NodeBB WebView App v3I 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.
-
Iframe doesn't work in second domain in FirefoxI have two domains, one the forum works in any browser, The second domain doesn't work in Firefox.
I'm using iframe to display the forum.
First method http://forum.imjetset.com/<?php function url_origin( $s, $use_forwarded_host = false ) { $ssl = ( ! empty( $s['HTTPS'] ) && $s['HTTPS'] == 'on' ); $sp = strtolower( $s['SERVER_PROTOCOL'] ); $protocol = substr( $sp, 0, strpos( $sp, '/' ) ) . ( ( $ssl ) ? 's' : '' ); $port = $s['SERVER_PORT']; $port = ( ( ! $ssl && $port=='80' ) || ( $ssl && $port=='443' ) ) ? '' : ':'.$port; $host = ( $use_forwarded_host && isset( $s['HTTP_X_FORWARDED_HOST'] ) ) ? $s['HTTP_X_FORWARDED_HOST'] : ( isset( $s['HTTP_HOST'] ) ? $s['HTTP_HOST'] : null ); $host = isset( $host ) ? $host : $s['SERVER_NAME'] . $port; return $protocol . '://' . $host; } function full_url( $s, $use_forwarded_host = false ) { return url_origin( $s, $use_forwarded_host ) . $s['REQUEST_URI']; } $absolute_url = full_url( $_SERVER ); $url = str_replace("forum.imjetset.com", "forum.superaffiliatesystem.com", $absolute_url); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Jetset Forum | Affiliate Marketing Forum</title> <meta http-equiv="X-Frame-Options" content="allow"> <style type="text/css"> body, html { margin: 0; padding: 0; height: 100%; overflow: hidden; } #content { position:absolute; left: 0; right: 0; bottom: 0; top: 0px; } </style> </head> <body> <div id="content"> <iframe width="100%" height="100%" frameborder="0" src="<?php echo $url; ?>" /> <div id="result"></div> </div> </body> </html>
Second method http://forum.imjetset.com/index1.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Jetset Forum | Affiliate Marketing Forum</title> <meta http-equiv="X-Frame-Options" content="allow"> <style type="text/css"> body, html { margin: 0; padding: 0; height: 100%; overflow: hidden; } #content { position:absolute; left: 0; right: 0; bottom: 0; top: 0px; } </style> </head> <body> <div id="content"> <iframe width="100%" height="100%" frameborder="0" src="http://forum.superaffiliatesystem.com" /> <div id="result"></div> </div> </body> </html>
Third method - http://forum.imjetset.com/index2.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Jetset Forum | Affiliate Marketing Forum</title> <meta http-equiv="X-Frame-Options" content="allow"> <style type="text/css"> body, html { margin: 0; padding: 0; height: 100%; overflow: hidden; } #content { position:absolute; left: 0; right: 0; bottom: 0; top: 0px; } </style> </head> <body> <div id="content"> <iframe width="100%" height="100%" frameborder="0" src="http://52.41.178.169" /> <div id="result"></div> </div> </body> </html>
Neither method works, does anyone have any idea how I could do to fix this? Google Chrome works correctly
-
NodeBB Android AppI believe it might be possible to have notifications working, I don't know if using GCM (Google Cloud Messaging).
What I understood is that I would need the server to send something to GCM and it would return it to the app, I don't know if there is a more direct way (without GCM) -
Invalid session in Android WebviewI managed to do the update, after correcting the nginx .conf for the test IP, I did not start the application, causing the Bad Gateway error.
The forum works with Webview from version 1.1Thank you for your help
-
Invalid session in Android WebviewI was doing this on the test server, Nginx was with the original IP, I switched to the IP of the test server and now it has "502 Bad Gateway" error, as the problem is another one (not NodeBB), I will search for solution through the Internet.
-
Invalid session in Android Webview[email protected] /opt/bitnami/nginx/html/NodeBB npm ERR! code 1
I tried to npm clean cache but displays the same error
I ran the command "npm install -g npm@latest" and now displayed "[email protected] /opt/bitnami/nginx/html/NodeBB"
Running the NodeBB update again
1. Bringing base dependencies up to date... OK 2. Checking installed plugins for updates... OK 3. Updating NodeBB data store schema... 14/1 14:07 [3781] - info: Beginning database schema update 14/1 14:07 [3781] - info: [2015/12/15] Chats upgrade skipped! 14/1 14:07 [3781] - info: [2015/12/23] Chats room hashes upgrade skipped! 14/1 14:07 [3781] - info: [2015/12/23] Adding theme to active plugins sorted set skipped! 14/1 14:07 [3781] - info: [2016/01/14] Creating user best post sorted sets skipped! 14/1 14:07 [3781] - info: [2016/01/20] Creating users:notvalidated skipped! 14/1 14:07 [3781] - info: [2016/01/23] Creating Global moderators group skipped! 14/1 14:07 [3781] - info: [2016/02/25] Social: Post Sharing skipped! 14/1 14:07 [3781] - info: [2016/04/14] Group title from settings to user profile skipped! 14/1 14:07 [3781] - info: [2016/04/19] Users post count per tid skipped! 14/1 14:07 [3781] - info: [2016/04/29] Dismiss flags from deleted topics skipped! 14/1 14:07 [3781] - info: [2016/05/28] Giving topics:read privs to any group that was previously allowed to Find & Access Category - skipped! 14/1 14:07 [3781] - info: [2016/06/13] Store upvotes/downvotes separately skipped! 14/1 14:07 [3781] - info: [upgrade] Schema already up to date! OK NodeBB Upgrade Complete!
-
Invalid session in Android WebviewNot working
1. Bringing [..] date... OK 2. Checking [..] updates... OK 3. Updating NodeBB data store schema... 14/1 02:02 [2402] - info: Beginning database schema update 14/1 02:02 [2402] - info: [2015/12/15] Chats upgrade skipped! 14/1 02:02 [2402] - info: [2015/12/23] Chats room hashes upgrade skipped! 14/1 02:02 [2402] - info: [2015/12/23] Adding theme to active plugins sorted set skipped! 14/1 02:02 [2402] - info: [2016/01/14] Creating user best post sorted sets skipp ed! 14/1 02:02 [2402] - info: [2016/01/20] Creating users:notvalidated skipped! 14/1 02:02 [2402] - info: [2016/01/23] Creating Global moderators group skipped! 14/1 02:02 [2402] - info: [2016/02/25] Social: Post Sharing skipped! 14/1 02:02 [2402] - info: [2016/04/14] Group title from settings to user profile [...] 14/1 02:02 [2402] - info: upgraded 1010 users 14/1 02:02 [2402] - info: upgraded 1111 users 14/1 02:02 [2402] - info: [2016/04/14] Group title from settings to user profile done 14/1 02:02 [2402] - info: [2016/04/19] Users post count per tid 14/1 02:02 [2402] - info: upgraded 0 topics 14/1 02:02 [2402] - info: upgraded 101 topics 14/1 02:02 [2402] - info: upgraded 202 topics 14/1 02:02 [2402] - info: upgraded 303 topics 14/1 02:02 [2402] - info: upgraded 404 topics 14/1 02:02 [2402] - info: upgraded 505 topics 14/1 02:02 [2402] - info: [2016/04/19] Users post count per tid done 14/1 02:02 [2402] - info: [2016/04/29] Dismiss flags from deleted topics 14/1 02:02 [2402] - info: [2016/04/29] 0 dismissable flags found 14/1 02:02 [2402] - info: [2016/04/29] Dismiss flags from deleted topics done 14/1 02:02 [2402] - info: [2016/05/28] Giving topics:read privs to any group tha t was previously allowed to Find & Access Category 14/1 02:02 [2402] - info: cid:22:privileges:groups:topics:read granted to gid: r egistered-users 14/1 02:02 [2402] - info: -- cid 22 upgraded 14/1 02:02 [2402] - info: cid:7:privileges:groups:topics:read granted to gid: re gistered-users 14/1 02:02 [2402] - info: cid:7:privileges:groups:topics:read granted to gid: gu ests [..] 14/1 02:02 [2402] - info: -- cid 30 upgraded 14/1 02:02 [2402] - info: cid:32:privileges:groups:topics:read granted to gid: r egistered-users 14/1 02:02 [2402] - info: -- cid 32 upgraded [...] 14/1 02:02 [2402] - info: cid:34:privileges:groups:topics:read granted to gid: r egistered-users 14/1 02:02 [2402] - info: cid:34:privileges:groups:topics:read granted to gid: g uests 14/1 02:02 [2402] - info: -- cid 34 upgraded 14/1 02:02 [2402] - info: cid:35:privileges:groups:topics:read granted to gid: r egistered-users 14/1 02:02 [2402] - info: cid:35:privileges:groups:topics:read granted to gid: g uests 14/1 02:02 [2402] - info: -- cid 35 upgraded 14/1 02:02 [2402] - info: [2016/05/28] Giving topics:read privs to any group tha t was previously allowed to Find & Access Category - done 14/1 02:02 [2402] - info: [2016/06/13] Store upvotes/downvotes separately 14/1 02:02 [2402] - info: upgraded 0 posts 14/1 02:02 [2402] - info: upgraded 101 posts [...] 14/1 02:02 [2402] - info: upgraded 2020 posts 14/1 02:02 [2402] - info: [2016/06/13] Store upvotes/downvotes separately done 14/1 02:02 [2402] - info: [upgrade] Schema update complete! OK NodeBB Upgrade Complete!
You are running NodeBB v1.0.3.
A new version (v1.4.2) has been released. Consider upgrading your NodeBB.I also restarted to see if anything changed, but nothing
The log is not complete because Akismet blocks -
Invalid session in Android WebviewMy config
server {
listen 80;server_name 52.41.178.169; location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header X-NginX-Proxy true; proxy_pass http://52.41.178.169:4567/; proxy_redirect off; # Socket.IO Support proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; }
}
Is this setting or another? Strange that for the Chrome browser works well and in Webview the same app does not work properly.
-
Invalid session in Android WebviewNo, Chrome (Android) works normally, no error message and login works normally.
Testing on the same device. -
Invalid session in Android WebviewI'm creating an app by following this topic
Re: NodeBB Android App using this project https://github.com/ReyKoxha/nodebb-webview/I did the test with https://community.nodebb.org/ and I had no problem, but with my forum I had this problem, and in login it gives a forbidden error.
In the browser works normally, only in Webview causes this error in any action I do.Need to enable something on the server to work correctly through webview?