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

Issue fork firebase-3179715

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jrglasgow created an issue. See original summary.

jrglasgow’s picture

Status: Active » Needs review
StatusFileSize
new2.2 KB

here is a patch that will throw an error is the option is chosen

ptmkenny’s picture

Assigned: jrglasgow » Unassigned
jrglasgow’s picture

Version: 8.x-2.0 » 3.0.x-dev
StatusFileSize
new2.17 KB

updating the patch to work with 3.0.x-dev