[CDB] Browser Push Notifications

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Scam Warning
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 6039
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman

Re: [3.3][RC] Browser Push Notifications

Post by MattF »

halil16 wrote: Tue Jun 25, 2024 7:28 am I see. :) Maybe after trying it on a test board... Hey, has anyone installed this extension on an active board?
https://area51.phpbb.com is using the integrated into the core version of this extension.
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
User avatar
warmweer
Jr. Extension Validator
Posts: 11874
Joined: Fri Jul 04, 2003 6:34 am
Location: somewhere in the space-time continuum

Re: [3.3][RC] Browser Push Notifications

Post by warmweer »

halil16 wrote: Tue Jun 25, 2024 7:28 am Hey, has anyone installed this extension on an active board?
Using it on my online board since 2 days ago: no errors noticed up to now
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
User avatar
halil16
Registered User
Posts: 1453
Joined: Fri Jul 24, 2020 11:30 pm
Location: Turkiye
Name: Halil

Re: [3.3][RC] Browser Push Notifications

Post by halil16 »

Isn't it very annoying not to receive notifications when the browser or app is not open? Isn't the whole magic lost?
Buy me a coffee ☕
Hire me for your phpBB board. 🚩
Introducing Mobile Upgrade! *Make your phpBB board like an app! 📱
O BeldeThatTowns*for sale*$2250 🛒
"The day we'll need ideas more than possessions, we'll find the secret to true wealth." - Peyami Safa /peˈjɑːmi saˈfɑː/
User avatar
warmweer
Jr. Extension Validator
Posts: 11874
Joined: Fri Jul 04, 2003 6:34 am
Location: somewhere in the space-time continuum

Re: [3.3][RC] Browser Push Notifications

Post by warmweer »

halil16 wrote: Thu Jun 27, 2024 9:57 am Isn't it very annoying not to receive notifications when the browser or app is not open? Isn't the whole magic lost?
This doesn't seem related to the extension IMHO. When my phone is switched off (most of the time anyway), I don't receive any notice about a call, and funny enough when my mail isn't open, I'm not informed that I've received a mail.

Yeah, I know ... it's scandalous, probably blasphemous even but I've survived up to now. 8-)
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
rxu
Extensions Development Team
Posts: 3965
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation

Re: [3.3][RC] Browser Push Notifications

Post by rxu »

That depends on whether one or another service (i.e. browser app) is running in the backgroung with the operation system. Extension has nothing to do with it.
User avatar
danieltj
Infrastructure Team Member
Infrastructure Team Member
Posts: 631
Joined: Thu May 03, 2018 9:32 pm
Location: United Kingdom
Name: Daniel James

Re: [3.3][RC] Browser Push Notifications

Post by danieltj »

halil16 wrote: Thu Jun 27, 2024 9:57 am Isn't it very annoying not to receive notifications when the browser or app is not open? Isn't the whole magic lost?
This extension is using browser notifications which is explicitly different to operating system level notifications. If your browser app is not running, you won't get any notifications. If you're expecting a notification on a system level like in the iOS notification centre, this extension won't be able to do that natively as it's the browser application that does the heavy lifting to feed the notification through your device.
User avatar
halil16
Registered User
Posts: 1453
Joined: Fri Jul 24, 2020 11:30 pm
Location: Turkiye
Name: Halil

Re: [3.3][RC] Browser Push Notifications

Post by halil16 »

OK, on ​​Android I get notifications when I allow Chrome to use data in the background. It's probably the same on the desktop (I usually close everything because I don't like too many things running in the background, so I won't try it in deskop, it's usually on anyway). But I haven't tried it on iOS yet. I may try it soon, but logically it should work, right? Apple allows notifications in web apps (This is what I meant when I said app.).

In the quick notification panel in my extension I only want to show a div if webpush is not active. It will disappear when it is enable. Is there a php template for this? Or should I show it with css and hide it, if possible. There is a separate notification window from the view on the desktop.
Buy me a coffee ☕
Hire me for your phpBB board. 🚩
Introducing Mobile Upgrade! *Make your phpBB board like an app! 📱
O BeldeThatTowns*for sale*$2250 🛒
"The day we'll need ideas more than possessions, we'll find the secret to true wealth." - Peyami Safa /peˈjɑːmi saˈfɑː/
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 6039
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman

Re: [3.3][RC] Browser Push Notifications

Post by MattF »

Safari will push notifications even when it's not running. It's all very browser and device specific.
Use the Apple Push Notifications Service to send notifications to your website users, right on their Mac desktop — even when Safari isn’t running. Safari Push Notifications work just like push notifications for apps. They display your website icon and notification text, which users can click to go right to your website.
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
User avatar
takufner
Registered User
Posts: 238
Joined: Mon Oct 23, 2006 10:39 am
Location: Rio de Janeiro - Brasil
Name: Prof. Caju

Re: [3.3][RC] Browser Push Notifications

Post by takufner »

I tested this extension on a mac (Chrome, Firefox and Safari) and on Android (Chrome) and it works good.

But, on iOS (Chrome and Safari), when I click the subscribe toggle or the enable button in UCP, nothing happens. Not even an error message.

Does someone tested it against iOS and could enable notifications? Is there some configuration on iOS that could be hindering the correct behavior? I am running iOS 17.5.1 and Chrome 126.0.6478.153.

Kind regards,
User avatar
halil16
Registered User
Posts: 1453
Joined: Fri Jul 24, 2020 11:30 pm
Location: Turkiye
Name: Halil

Re: [3.3][RC] Browser Push Notifications

Post by halil16 »

takufner wrote: Fri Jun 28, 2024 11:46 am But, on iOS (Chrome and Safari), when I click the subscribe toggle or the enable button in UCP, nothing happens. Not even an error message.
I couldn't test it in person as I don't have access to an iPhone at the moment. But when I asked a user to test it, I got the answer that clicking the subscribe button did not work in web application (PWA). It should have worked.
Buy me a coffee ☕
Hire me for your phpBB board. 🚩
Introducing Mobile Upgrade! *Make your phpBB board like an app! 📱
O BeldeThatTowns*for sale*$2250 🛒
"The day we'll need ideas more than possessions, we'll find the secret to true wealth." - Peyami Safa /peˈjɑːmi saˈfɑː/
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 6039
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman

Re: [3.3][RC] Browser Push Notifications

Post by MattF »

takufner wrote: Fri Jun 28, 2024 11:46 am I tested this extension on a mac (Chrome, Firefox and Safari) and on Android (Chrome) and it works good.

But, on iOS (Chrome and Safari), when I click the subscribe toggle or the enable button in UCP, nothing happens. Not even an error message.

Does someone tested it against iOS and could enable notifications? Is there some configuration on iOS that could be hindering the correct behavior? I am running iOS 17.5.1 and Chrome 126.0.6478.153.

Kind regards,
That's because it is disabled. Clicking a disabled button will always do nothing because it's, well, disabled.

It's disabled because Safari on iOS does not support Push Notifications. Unless you convert the web page into a progressive web application and jump through a few other hoops.

You gotta go into the Safari Settings > Advanced > Feature Flags and enable Notifications.

Then you gotta go to the site, and Add it to your Home Screen via the Share button.

From that point on you need to access the site from its new App icon on your home screen.

And yes, that also means the site you want to receive push notifications from will have to exist on your phone as a web app, whether you like it or not. Until some version of iOS finally makes safari support push notifications in a normal way.
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
User avatar
SpIdErPiGgY
Registered User
Posts: 312
Joined: Sun May 02, 2021 2:11 pm
Location: Erpe-Mere, Aalst, BE
Name: Andy Dm

Re: [3.3][RC] Browser Push Notifications

Post by SpIdErPiGgY »

MattF wrote: Mon Jun 24, 2024 2:43 pm
SpIdErPiGgY wrote: Mon Jun 17, 2024 12:22 am Still can't click or Enable in the notification dropdown..

Firefox Beta app


Screenshot_20240617_022009_Firefox Beta.jpg


Screenshot_20240617_022038_Settings.jpg
There's only 3 conditions under which the button would wouldn't work:

1. You're browser has already blocked/denied the site from allowing any notifications (you'll get an alert for this)
2. You're device/browser does not support push notifications (subscribe buttons would be totally disabled)
3. The site is not HTTPS or a localhost (you won't be able to set up push notifications from the ACP)

Based on your photo, the button is not disabled (it'd be more grayed out) which means either your site is denied already, or uyou have some other javascript problems so you should look at your browser's dev tools console if possible.
I found the problem. It's thix ext: viewtopic.php?t=2436091
Do you have a fix for this please?
Image
rxu
Extensions Development Team
Posts: 3965
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation

Re: [3.3][RC] Browser Push Notifications

Post by rxu »

SpIdErPiGgY wrote: Sun Jun 30, 2024 5:16 am Do you have a fix for this please?
Could you describe the exact problem to fix?
User avatar
SpIdErPiGgY
Registered User
Posts: 312
Joined: Sun May 02, 2021 2:11 pm
Location: Erpe-Mere, Aalst, BE
Name: Andy Dm

Re: [3.3][RC] Browser Push Notifications

Post by SpIdErPiGgY »

rxu wrote: Sun Jun 30, 2024 5:28 am
SpIdErPiGgY wrote: Sun Jun 30, 2024 5:16 am Do you have a fix for this please?
Could you describe the exact problem to fix?
viewtopic.php?p=16017520#p16017520
Image
rxu
Extensions Development Team
Posts: 3965
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation

Re: [3.3][RC] Browser Push Notifications

Post by rxu »

Why do you think it's caused by the Sticky Bar extension?

Return to “Extensions in Development”