Skip to content

Commit 689dde6

Browse files
authored
Merge pull request #45 from iMattPro/1.0.0-rc6
1.0.0-RC6
2 parents 6ed1fb9 + 186a3be commit 689dde6

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# Changelog
22

3-
### 1.0.0-RC5 - 2024-05-31
3+
### 1.0.0-RC6 - 2024-06-01
44

55
- New: Added an enable push subscriptions toggle switch to the footer of the Notifications drop down.
6-
- New: New and existing users will have push notification preferences for PMs and being quoted in posts set by default. (Note this will not apply to existing users of boards that have installed a previous version of this extension.)
6+
- Fixed an issue where the Subscribe button was appearing on some UCP pages unexpectedly.
7+
- Fixed an issue where push notifications failed on Android devices using Firefox as their browser.
78
- Requires phpBB 3.3.12 or newer.
89

910
### 1.0.0-RC4 - 2024-05-26

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "phpbb-extension",
44
"description": "An official phpBB extension that allows board users to receive browser-based push notifications.",
55
"homepage": "https://www.phpbb.com",
6-
"version": "1.0.0-RC5",
6+
"version": "1.0.0-RC6",
77
"license": "GPL-2.0-only",
88
"authors": [
99
{

notification/method/webpush.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,12 @@ protected function notify_using_webpush(): void
194194

195195
$web_push = new \Minishlink\WebPush\WebPush($auth);
196196

197+
// Fix encryption payload size for Firefox on Android
198+
if (preg_match('/android.*firefox/i', $this->user->browser))
199+
{
200+
$web_push->setAutomaticPadding(2820);
201+
}
202+
197203
$number_of_notifications = 0;
198204
$remove_subscriptions = [];
199205

styles/all/template/event/notification_dropdown_footer_after.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% if NOTIFICATIONS_WEBPUSH_ENABLE and notification_types is not defined and notification_list is not defined %}
1+
{% if NOTIFICATIONS_WEBPUSH_ENABLE and notification_types is not defined %}
22
<div class="wpn-notification-dropdown-footer" title="{{ lang('NOTIFY_WEBPUSH_DROPDOWN_TITLE') }}">
33
<span class="ellipsis-text">{{ lang('NOTIFY_WEBPUSH_ENABLE_SHORT') ~ lang('COLON') }}</span>
44
<button id="subscribe_webpush" name="subscribe_webpush"><i class="icon fa-toggle-off fa-fw icon-lightgray"></i><span>{{ lang('NOTIFY_WEBPUSH_SUBSCRIBE') }}</span></button>

0 commit comments

Comments
 (0)