Skip to content

v0.10.0

Latest

Choose a tag to compare

@etxemag75 etxemag75 released this 19 Feb 15:11
· 1 commit to main since this release

Added

  • PushX.push_data/3,4 — Send data-only (silent) push notifications via both :fcm and named instances. Returns a clear error for :apns with guidance to use push/4 with push_type: "background".
  • PushX.Response.extract_fcm_error_code/1 — Public function to extract FCM-specific error codes from the details array in FCM v1 API responses.
  • 16 new tests (302 total, 25 doctests)

Fixed

  • FCM UNREGISTERED errors parsed as unknown_error — FCM v1 API wraps the real error code (e.g., UNREGISTERED) in a details array with NOT_FOUND as the top-level gRPC status. The parser only read the top-level status, so on_invalid_token callbacks never fired for unregistered tokens. (#3)
  • FCM build_message always added notification key — Made data-only messages impossible and sent "notification": null for empty Message structs. Now only includes notification when content exists. (#2)
  • FCM structured payloads treated as notifications — Raw maps with "notification" and/or "data" keys were wrapped in another "notification" key instead of being passed through.

Full Changelog: https://github.com/cignosystems/pushx/blob/main/CHANGELOG.md#0100---2026-02-19