when sending of notification fails throw an error

Created on 29 October 2020, over 4 years ago
Updated 19 September 2023, over 1 year ago

Problem/Motivation

I occasionally have push notification tokens hanging around after they are no longer registered and would like to be able to clean them up. My logs could get filled with "Failure message: NotRegistered" messages

Steps to reproduce

Have a push notification token remain in the system after it is unregistered in the

Proposed resolution

have the send() method accept $throw_error = FALSE as a parameter so those who wish to use it can receive the error returned from Firebase.

Remaining tasks

create a patch

User interface changes

none

API changes

add an optional parameter to the interface and all child classes

Data model changes

none

✨ Feature request
Status

Needs review

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jrglasgow Idaho

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024