[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
halil16
Registered User
Posts: 1448
Joined: Fri Jul 24, 2020 11:30 pm
Location: Turkiye
Name: Halil

Re: [3.3][RC] Browser Push Notifications

Post by halil16 »

You should report your concerns to Apple... :) On the other hand, notifying your users also helps.
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
dbrewood
Registered User
Posts: 522
Joined: Tue Feb 09, 2021 9:35 am
Name: Daron Brewood

Re: [3.3][RC] Browser Push Notifications

Post by dbrewood »

MattF wrote: Sun Jul 14, 2024 2:08 am Why? The whole purpose of this extension is notification/alerts.
As on iOS a lot of notifications are handled that way and it gives immediate visibility without having to pay attention to the notification queue.
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 6035
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 »

dbrewood wrote: Sun Jul 14, 2024 7:17 am
MattF wrote: Sun Jul 14, 2024 2:08 am Why? The whole purpose of this extension is notification/alerts.
As on iOS a lot of notifications are handled that way and it gives immediate visibility without having to pay attention to the notification queue.
Those are apps you’re thinking of. The purpose of this extension is solely to push notifications to web browsers. It works on all desktop systems and modern browsers, including Android with its modern browsers. However, browser notifications do not work on iOS/Safari unless you save the web page as a bookmark on your home screen.

This limitation is specific to iOS. When a web page is saved to the iOS home screen, it becomes a bookmarklet, not an application. Although some web pages can be developed into full-fledged Progressive Web Applications (PWAs) that could show badges, this is not the typical behavior for bookmarklets on iOS home screens.

Although we have been investigating it, if it can be done in a plausible way.
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
User avatar
dbrewood
Registered User
Posts: 522
Joined: Tue Feb 09, 2021 9:35 am
Name: Daron Brewood

Re: [3.3][RC] Browser Push Notifications

Post by dbrewood »

Okay thanks for clarifying!
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 6035
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 »

dbrewood wrote: Sun Jul 14, 2024 7:11 pm Okay thanks for clarifying!
We are not pursuing badges on iOS app icons. This is primarily because all we are doing here is sending push notifications. Badges in iOS would require some sort of background sync API between the device and the site, well beyond the scope of this extension. At that point you're building a progressive web app, which some other extension could attempt to do one day perhaps.

As for iOS currently, notifications work just fine. You can even go into your iOS settings and set the type of notification preferences you want for a phpBB website that has been added to home screen. Just because there is not a badge on the icon does not mean ignoring this extension, especially when the actual alert is what is working and the whole point of this extension (and it also works on Macs, PCs, android, et. al.)
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
User avatar
halil16
Registered User
Posts: 1448
Joined: Fri Jul 24, 2020 11:30 pm
Location: Turkiye
Name: Halil

Re: [3.3][RC] Browser Push Notifications

Post by halil16 »

I seem to remember the badges being present when I was using an iPhone. Not it now?

edit:

So if there was a push notification, it was there in the application icon.
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: 6035
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: Mon Jul 15, 2024 3:47 pm I seem to remember the badges being present when I was using an iPhone. Not it now?

edit:

So if there was a push notification, it was there in the application icon.
Badges were never present on iOS. It takes a dedicated software solution to enable badges on app icons on iOS.
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
User avatar
wads24
Registered User
Posts: 685
Joined: Fri Jun 10, 2005 4:44 am
Name: James

Re: [3.3][RC] Browser Push Notifications

Post by wads24 »

What a great idea?

I can't wait for the official release of this extension for browser push notifications.One question I do have is that I don't see the install prompt on my Android phone unless I click the admin link. Is that by design, or am I missing something in the setup?Is there another way to prompt users to enable push notifications rather than going to the user control panel? I think a lot of visitors have issues finding things in the user control panel.Can it be set to prompt users to enable notifications when they log into the website versus having to go to the user control panel and click enable?
Thanks in advance for a reply.
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 6035
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 »

wads24 wrote: Thu Jul 18, 2024 1:14 pm What a great idea?

I can't wait for the official release of this extension for browser push notifications.One question I do have is that I don't see the install prompt on my Android phone unless I click the admin link. Is that by design, or am I missing something in the setup?Is there another way to prompt users to enable push notifications rather than going to the user control panel? I think a lot of visitors have issues finding things in the user control panel.Can it be set to prompt users to enable notifications when they log into the website versus having to go to the user control panel and click enable?
Users can either go to their notification settings to enable it, or enable it from their notifications dropdown menu. It's a preference.
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
User avatar
wads24
Registered User
Posts: 685
Joined: Fri Jun 10, 2005 4:44 am
Name: James

Re: [3.3][RC] Browser Push Notifications

Post by wads24 »

Thanks for your reply.

What about installing a website app on Android phones? I noticed that the prompt to install the app for the website will only drop down from the top of the phone if you click on the admin link for phpBB. Is there a setting that can be changed to prompt the installation of the PWA app on the index page instead of the admin sign-in link?
Thanks in advance for a reply.
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 6035
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 »

wads24 wrote: Fri Jul 19, 2024 4:26 am Thanks for your reply.

What about installing a website app on Android phones? I noticed that the prompt to install the app for the website will only drop down from the top of the phone if you click on the admin link for phpBB. Is there a setting that can be changed to prompt the installation of the PWA app on the index page instead of the admin sign-in link?
I don't know about Android phones but, with a forum, you can create a post/announcement to explain to your users how they can make use of push notifications, such as letting them know that iOS devices do not support them unless they add your site to their home screens, if they don't already know this.

Lots of sites offer push notification alerts now. Some of them...the annoying one's...hit you with an intrusive blocker-alert asking you to enable them. We will never do that. But as an iOS device user, I have never ever encountered any site that tried to tell to me that I need to add their site to my home screen and enable push alerts. We will never do that either. Like many iOS users, when I've encountered a site where I see they offer push notifications, but I can't enable them on my device because it's not supported, a quick google search always solved that. And like I said above, you can simply post about it in your forum.

Also, this feature is a desktop-first feature. Mobile device support is only possible based on how devices and/or their OS system go about implementing it, and it's not standardized...yet.
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
Octopus
Registered User
Posts: 37
Joined: Mon Mar 19, 2007 10:28 am

Re: [3.3][RC] Browser Push Notifications

Post by Octopus »

The extension is working very good. But I get this errors in the console:

Code: Select all

webpush.js?assets_version=1033:84 
 Uncaught 
TypeError: Cannot read properties of null (reading 'disabled')
    at handleDisabledState (webpush.js?assets_version=1033:84:23)
    at PhpbbWebpush.init (webpush.js?assets_version=1033:75:3)
    at HTMLDocument.<anonymous> (webpush.js?assets_version=1033:321:16)

webpush.js?assets_version=1033:68 
TypeError: Cannot read properties of null (reading 'addEventListener')
    at webpush.js?assets_version=1033:62:22
webpush.js?assets_version=1033:70 
 Uncaught (in promise) 

TypeError: Cannot set properties of null (setting 'disabled')
    at webpush.js?assets_version=1033:70:31
192x192.png:1 
 
 GET https://testforum.com/app.php/images/icons/192x192.png 404 (Not Found)
posting.php:1 
 Error while trying to use the following icon from the Manifest: https://testforum.com/app.php/images/icons/192x192.png (Download error or resource isn't a valid image)
I uploaded valid png-images to /images/icons/
rxu
Extensions Development Team
Posts: 3954
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation

Re: [3.3][RC] Browser Push Notifications

Post by rxu »

Octopus wrote: Fri Aug 02, 2024 8:06 am errors in the console
Thanks for the report. This happens for anonymous user, already fixed in the extension repo.
User avatar
ivailo95
Registered User
Posts: 1097
Joined: Tue Sep 05, 2017 8:00 am
Location: Bulgaria
Name: Ivailo

Re: [3.3][RC] Browser Push Notifications

Post by ivailo95 »

Is this ext will work for Opera GX?
For REALLY good and VERY cheap hosting CLICK HERE
Watch "Lost in a random" game, it's the best
User avatar
nou nou
Registered User
Posts: 707
Joined: Sat Oct 29, 2016 8:08 pm

Re: [3.3][RC] Browser Push Notifications

Post by nou nou »

Working beautifully apart from one thing - my forum is installed in a subfolder of my domain (www.mysite.com/myforum) and third party extensions that generate notifications, like Thanks for Posts and others, deliver a path to the post that is www.mysite.com/viewtopic.php... instead of www.mysite.com/myforum/viewtopic....

In the forum's notification list in the navbar the links are all fine, just in the Push Notifications they are not.

I've redirected my way around it in the .htaccess, but any idea what may cause this?

Thanks!

Return to “Extensions in Development”