Thanks for the 2.04 release which brings support for subscribed topics and the notification links to the reply Working very well.
Support for subscribed forums also works but the notification links to the list of topics instead of the new topic.
]]>Hi
I’am using wpadverts for classifieds and users can modify their listings on the front end and when they do, a new push message is sent out.
If I modify the same post in the backend a new push message is not sent out. The checkbox “Send notification on advert update” on the posts is not ticked.
Is there a way to prevent this behavior?
]]>My PWA is having issues with incredibly short session times (less than an hour)
I have adjusted the php.ini to be a week, have cookies lasting 2 weeks, still running into the issue.
I am also a novice and am sort of over my skis with how all of this works, but do not see any service workers working on caching the site, any assistance would be greatly appreciated.
My production site is working fine but on my test site the push notifications are not working.
I’am using FCM v1 and service worker are registered and all looks fine but no notifications.
How can I troubleshoot to see what’s going wrong?
/S
]]>Hello Murali,
I’m trying to push notifications to my flutter mobile app and I’ve read the article you wrote about mobile apps but I want to know what the key should be I’m sending the token within the body of the post request. Like:
body = {
“??” : encryptedToken
}
what should i replace the “??” with?, and after I send the token should it appear in the device tokens tab in the plugin page?
Thanks,
Mostafa
Ran into some problems using the plugin. When publishing a new post a critical error occurs. The post is still being published but no notifications work.
Here are a few lines from the error log:
[16-Aug-2024 11:04:58 UTC] PHP Fatal error: Uncaught DomainException: Your default credentials were not found. To set up Application Default Credentials, see https://cloud.google.com/docs/authentication/external/set-up-adc in /var/www/domains/dokkarit.fi/www/wordpress/wp-content/plugins/push-notification-for-post-and-buddypress/vendor/google/auth/src/ApplicationDefaultCredentials.php:195
Stack trace: 0 /var/www/domains/dokkarit.fi/www/wordpress/wp-content/plugins/push-notification-for-post-and-buddypress/vendor/google/apiclient/src/Client.php(1247):
From 1.98 version onwards plugin supports following push notification providers, select one of providers according to your preferred choices. Only one push notification provider can be used at a time.
Following are new features and changes in 1.98 version.
Thank you for a very good plugin. Below are some suggestions to make it even better.
Send push to all non logged in users (when you want to inform all non logged in users that you are planning to limit push to only logged in.
Send push to specific users. (for test and troubleshooting)
Show username in addition to user id in the list of Device Tokens. (It’s a hassle to find the username based on only the user id.
Forum push only for subscribed forums/topics/replies etc instead of all posts for everyone.
]]>I want to know since I am using buddypress + Better Message for my site, when a user is logged in already and messaging each other it still sents the push notification and on mobile it gets a bit annoying, how do I stop push notifications from being sent if the user is already on the site?
]]>Hi, I’m using Progressier for the PWA and I have enabled an option “disable push handling” in Progressier to allow PNFPB to handle the push notification, they have a widget that I would like to use for the notification prompt but if it’s enabled it doesn’t subscribe the user to the PNFPB notifications, is there a way to fix that? I tried contacting their support and their reply was “You’ll have to check with that other push solution. What the?Notification Prompt?does is make users authorize notifications for your domain.
If that other push solution has properly implemented push, they should detect that?Notification.permission?is enabled for the domain and subscribe the user to their push service without needing an extra prompt.
But I can’t guarantee that your other push solution has in fact implemented this the proper way. The code that subscribes the user to a given push service has to come from that other push service. It wouldn’t be technically possible to build mechanisms for that on our end.”
]]>Hi Murali,
We’ve come across a critical issue since moving to HTTP v1 from Legacy Firebase.
We use PNFPB REST API to send mobile app (not web app) notifications for BuddyPress private messages. Since updating to HTTP v1 we noticed that:
Messaging became unreliable.
Our server CPU usage was significantly higher than it usually would be (e.g. 80%, when it normally sits between 5-10%).
These issues were resolved immediately once we moved back to Legacy Firebase, when using version 1.89 of PNFPB; or by rolling the plugin back to version 1.69, where we’re able to continue using HTTP v1 Firebase. We rolled it back to 1.69 as we knew this version had worked for us previously. We haven’t tested other versions to know when this issue started.
Given Legacy Firebase is being retired on the 21st of June, could these issues be looked into as soon as possible?
Thanks.
]]>Tried this with buddypress and it works great. Does it work with buddyboss?
]]>Hello,
I am encountering an issue while trying to set up the Push Notification for Post and BuddyPress plugin with Firebase Cloud Messaging API (V1).
I have followed the installation instructions carefully, including downloading the plugin and uploading the JSON file, and filling in the required fields (except Firebase Server Key). However, upon launching the site, I am not prompted with a permission request or service worker in the console.
Even when I force the acceptance of notifications, the test notifications remain unsuccessful.
Could you please assist me in resolving this issue? Any guidance or troubleshooting steps would be greatly appreciated.
Thank you.
]]>Since I’ve been using some other plugin (Perfecty Push Notifications) which is now abandoned, a lot of my visitors are already subscribed to my notifications in that plugin.
That creates an issue, because I can’t import them, and I can’t reset notification subscription in their browser. They already have service worker in their browser service-worker-loader.js.php
Expected popup which should be asking users to subscribe doesn’t show up, unless they manually reset their subscription in their browser (which no one does).
Is there a way to handle this issue in some manner? We need ‘Remove old Service Workers’ from users browser, like Perfecty Push plugin does. https://docs.perfecty.org/wp/conflict-resolution/
To somehow unregister other push services.
Could it be possible to send notifications to users, and once they are on the website, to update or reset their subscription, so they can subscribe with new service?
Or anything that would help in this manner?
I hope you understand what is my concern – how to move from old plugin to your plugin, but to try to maximize transfer of my subscribers in any way possible.
Hello!
I managed to get push notifications only on tablet with chrome/android and PWA installed.
On all the other devices it doesn’t work.
On android smartphones I can subscribe but don’t receive notifications.
On iPhone I can’t subscribe (don’t see the bell).
On Firefox/Linux desktop I can subscribe but don’t receive notifications.
On Chrome/Linux desktop I can’t subscribe (see the bell but it doesn’t work).
What can be the reason?
(In Device tokens list I see these subscribed devices with userid=0 and shortcode subscription = 1000).
I use FCM.
Regards, Alex
]]>Hi,
I am using custom push notification to send web and android app both but in web after clicking on notification custom link url is working but in app custom url link not working. Showing predefined value(google.in) all time.
KIndly check this.
After the last update my site became unavailable. As I observed, mysql consumption drastically increased. After disabling the plg it was back online.
]]>Hello,
The plugin is set up and users can subscribe. I found, though that I couldn’t subscribe to Buddypress notifications for groups in my admin account and in the settings in Buddypress it said I had to subscribe to use the menu. But I cannot get the subscription box to reappear for me in Chrome. I tried deleting the token for my user ID and was able to resubscribe in Firefox when I was logged out, but I most often use Chrome and the resubscribe box just will not appear. I tried clearing cookies and made sure I had any popup blocker, etc. turned off.
Is there any way I can resubscribe so I can get group notifications, etc?
Thanks
]]>Hi, Query Monitor shows two deprecated errors and 1 Database error while using this plugin:
PHP 8.2 Error:
Deprecated Creation of dynamic property PNFPB_ICFM_Push_Notification_Post_BuddyPress::$hook is deprecated
wp-content/plugins/push-notification-for-post-and-buddypress/pnfpb_push_notification.php:2353
1 Plugin: push-notification-for-post-and-buddypress
Deprecated Creation of dynamic property PNFPB_ICFM_Push_Notification_Post_BuddyPress::$pnfpb_admin_bar_menu_obj is deprecated
wp-content/plugins/push-notification-for-post-and-buddypress/pnfpb_push_notification.php:2461
1 Plugin: push-notification-for-post-and-buddypress
Total: 2
MYSQL 8.0 Database Error:
DESCRIBE IF;
PNFPB_ICFM_Push_Notification_Post_BuddyPress->PNFPB_update_database()
Plugin: push-notification-for-post-and-buddypress You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘IF’ at line 1 1064
Please consider fixing it! Thanks.
]]>I could not get things working with just FireBase, but, I am able to send a push notification through the OneSignal Dashboard and it is received by the app. However, I am still unable to get notification from BuddyPress activities and I can not save preferences in user profiles.
I can see the device tokens in my PNFPB settings as OneSignal. Not sure if the PNFPB is not talking to OneSignal or what.
Any help would be awesome.
I have updated to 1.81 and I am still having issues with Android Webview. I have read the docs several times and searched this forum for fixes, but none to help. Been going on for a few months now. I get: Uncaught (in promise) FirebaseError: Messaging: This browser doesn’t support the API’s required to use the Firebase SDK. (messaging/unsupported-browser)
I have no idea what to do. I have redone things on my end as well, tried to disable other plugins also. It works fine on the browser.
]]>Hi Murali,
We are trying to update PNFPB to the latest version (1.80) but we have noticed that the private message thread ID is not coming back in the Firebase data, for BuddyPress private messages. From our quick testing, the last version where we don’t seem to be having this issue is version 1.69. Would you be able to look into this?
We are using the PNFPB REST API, and the legacy Firebase API (we’re aware this will need to be updated before June).
Thanks for your help. ??
]]>Hello! I have a problem with Elementor and the notifications plugin, when I have both enabled, the pages created with Elementor do not load correctly or do not load at all. Attached screenshot of the error console.
Please help
]]>Following are list of updates in 1.79 version, New feature
= 1.79 version Mar 4 2024 =
New feature: Various Subscription options are included in custom prompt, bell icon while subscribing for push notification first time. Users will be able to select subscription options while subscribing for the first time from custom prompt/bell icon. From bell icon, front end users will be able to modify subscription options whenever it is needed. Subscription option can be turned on/off to include/exclude in custom prompt or in bell icon from admin settings.
Bug fix: Removed unwanted console messages in mobile webview javascripts.
New feature: Included [group name] place holder for group title, group content push notification.
New feature: If Buddypress followers plugin installed then notification can be sent only to followers for buddypress activities/group activities/comments.
Hello,
I am just setting up the plugin.
For the front-end subscribe/unsubscribe, there are options — but most seem to relate to Buddypress. Is there any way for subscribers to be able to opt in or out of standard posts or custom post types? (I’m assuming the “new post/activity” in the popup refers to BuddyPress posts).
]]>Hello,
For BuddyPress groups, you can enter [member name] to display the member name. Is there a placeholder for the name of the group or does it get added to the notification somewhere?
Thanks
]]>Hello,
I’m trying to set up this plugin but I am using Firebase httpv1. I uploaded the json file successfully, entered in the required fields EXCEPT for the “server key.” There is not a server key button in Firebase as is shown in the tutorial. Is this still needed? I note that without it, as soon as I save the settings, I got a browser notification request popping up? Do you only need to enter this for legacy or can you tell me where to get the server key if I do need it?
Thanks
]]>Running BuddyPress latest with Youzify BP plugin and Divi Theme… also cannot save PN Settings ?? – switched to generic theme still no go
Also tried with Youzify deactivated –
1.78 VERSION FEB 13 2024
Following are list of changes,
Bug fix for webview mobile app: Fixed problems related to android/ios mobile app push notification subscription option update to database, saving front end subscription options in webview app.
Bug fix for Firebase httpv1 version: Fixed problem in admin settings on uploading service account json file to enable firebase httpv1 version api independent of other firebase settings.
Bug fix for BuddyBoss users: Updated logic to send notifications for activity comments only to liked users for particular activity.
Bug fix for BuddyBoss users: Updated logic in group forum activities to send notifications only for subscribed users for particular forum.
Bug fix for onesignal users: Updated logic to control onesignal push notifications based on admin options enabled for various push notifications in plugin admin page.
Update: Info message showing subscribe for push notifications in frontend push notification subscription control menu under profile->settings, when user is not subscribed for push notification.