Changelog
=========

2.2.11 (August 2, 2026)
-----------------------
- Enh #102: Calculate the notification badge count internally and allow other modules to add their own counts via the new `MessagingService::EVENT_NOTIFICATION_COUNT` event; the `$notificationCount` parameter of `MessagingService::processMessage()` is deprecated and its value ignored

2.2.8 (July 15, 2026)
---------------------
- Fix #100: Open the notification URL when a notification is clicked while the app is already open — Firebase only focuses the window without navigating (iOS PWAs with the app already running are not covered: WebKit never dispatches the click event there)
- Fix #101: Enable notifications button hidden on a new device when the user already has a token registered on another device

2.2.7 (July 9, 2026)
--------------------
- Fix #96: Notification.requestPermission() not bound to user gesture — iOS PWA push never shown
- Fix #96: Unresolved `@web` alias in service worker `importScripts()` URLs breaks service worker installation
- Fix #96: Enable notifications button did nothing when a stale token was cached in localStorage
- Fix #98: Log all FCM send failures — non-token errors (e.g. permission denied, FCM API disabled) were silently discarded and the send reported as successful

2.2.6 (July 7, 2026)
--------------------
- Fix: Compatibility with HumHub 1.19, which removed the `SiteIcon` widget in favor of the `AssetImage` registry (core #8011)

2.2.5 (June 22, 2026)
---------------------
- Fix: Make m230205_141256_fcm_senderid migration resilient when module is not bootstrapped
- Fix: Use of removed module property `isActivated`

2.2.4 (May 15, 2026)
--------------------
- Fix: Session variable name clashes prevents mobile tokens from being deleted on logout
- Fix: Auto-clean invalid FCM tokens from reinstalled apps on first failed send
- Fix: Token cleanup of only permanently invalid tokens, sparing offline devices
- Fix: Token not registered when notification permission is granted after login
- Enh: Add developer documentation covering architecture, token lifecycle, and dispatch flow.

2.2.3 (May 11, 2026)
--------------------
- Enh #89: Remove deprecations
- Fix: Logo appear twice in push notifications

2.2.2 (February 4, 2026)
------------------------
- Fix: Debug modal view for BS5
- Enh #83: Use core proxy settings for Proxy driver

2.2.1 (August 8, 2025)
----------------------
- Enh #74: Move non Firebase stuff to core
- Enh #79: Migration to Bootstrap 5 for HumHub 1.18

2.1.9 (August 13, 2025)
-----------------------
- Fix #75: Warning for "FCM Detection - App is using Proxy Firebase Service"
- Fix #78: Don't show opener if logout triggered by mobile app
- Enh #80: Add height priority for mobile app push notifications

2.1.8 (March 21, 2025)
----------------------
- Chg: URL for the mobile share intend feature

2.1.7 (March 15, 2025)
----------------------
- Fix: File upload settings sent to the mobile app for share intend

2.1.6 (March 11, 2025)
-----------------------
- Fix: Show opener for iOS when switching to another instance

2.1.5 (March 11, 2025)
----------------------
- Enh: Add Share intend feature for the mobile app

2.1.4 (January 24, 2025)
-----------------------
- Enh #66: Add "Open native console" button for the mobile app
- Chg #67: The minimal HumHub version is now 1.17
- Chg #67: Use the new `DeviceDetectorHelper` helper instead of `MobileAppHelper`
- Fix: Update module resources path

2.1.3 (January 6, 2025)
-----------------------
- Fix #32: Delete DeviceID after Logout

2.1.2 (December 19, 2024)
-------------------------
- Fix #262: Switch Network doesn't work 

2.1.1 (December 16, 2024)
-------------------------
- Fix #58: iOS mobile app detection for iPad devices
- Enh #60: For Multi-Instance apps, add a new item in the account menu to display the Opener app page, allowing to switch to the other HumHub instance

2.1.0 (October 21, 2024)
------------------------
- Fix #51: Firebase not working anymore for web push notifications
- Fix #54: Remove obsolete driver FcmLegacy
- Enh #52: Use PHP CS Fixer

**This version requires extra settings in the module configuration.**

Please read [the Installation page](https://marketplace.humhub.com/module/fcm-push/installation) and update the Firebase version in the CSP configuration.

2.0.7 (September 2, 2024)
-------------------------
- Fix #48: Fix go service for multiline links

2.0.6 (August 25, 2024)
-----------------------
- Fix #41: Fix go service for multiline links
- Enh #47: Updated `kreait/firebase-php` to version 7.13+

2.0.3 (June 24, 2024)
---------------------
- Enh: Endpoint to test push status
- Enh: Add possibility to profile `.well-known` files

2.0.2 (May 28, 2024)
-----------------------
- Enh: Branded App Firebase Support

2.0.1 (January 8, 2024)
-----------------------
- Enh: Improve Mobile Page Debug Page with POST Debug

2.0.0 (October 17, 2023)
------------------------------
- Enh: Translations & Stable Release

2.0.0-beta.9 (October 6, 2023)
------------------------------
- Enh: Do not require valid session for unregister FCM tokens

2.0.0-beta.8 (October 4, 2023)
-------------------------------
- Enh #29: Wrap URLs in email messages to "go" app
 
2.0.0-beta.7 (August 21, 2023)
------------------------------
- Enh: Added Token Unregister on App Logout 

2.0.0-beta.6 (August 1, 2023)
-----------------------------
- Fix #25: Notification is not sent in user's language setting
- Chg #26: Module configuration titles rewording and changing links to buttons

2.0.0-beta.5 (July 14, 2023)
----------------------------

- Fix: Error when no Web Driver is configured.

2.0.0-beta.4 (July 13, 2023)
----------------------------

- Fix #22: `send-to-user` CLI command fails because mismatched arguments

2.0.0-beta.3 (July 4, 2023)
---------------------------

- Enh: Validator for GoogleService Account JSON
- Enh: Show/Hide Mobile App Opener Dialog after Login/Logout
- Fix #18: Do not pass `SiteIcon` as notification image
- Enh: Added Mobile App Page

2.0.0-beta.1 (March 28, 2023)
-----------------------------

:warning: This major release an updated module configuration!

- Enh: Switched to new Google Firebase API
- Enh: Added CLI Test Command
- Enh: Bundle JS File instead of use Google CDN
- Enh: Migrated Javascript code into HumHub module logic

1.0.1  (January 21, 2021)
-------------------------
- Fix: Initialize firebase only if module was configured
- Enh: Updated CHANGELOG

1.0.0  (December 17, 2019)
-------------------------
Initial release
