Skip to content

Commit

Permalink
Document SendReport helpers for valid/unknown/invalid tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromegamez committed May 18, 2021
1 parent 36257df commit a0ac2e5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/cloud-messaging.rst
Expand Up @@ -206,6 +206,19 @@ methods to determine the successes and failures of the multicasted message:
}
}
// The following methods return arrays with registration token strings
$successfulTargets = $report->validTokens(); // string[]
// Unknown tokens are tokens that are valid but not know to the currently
// used Firebase project. This can, for example, happen when you are
// sending from a project on a staging environment to tokens in a
// production environment
$unknownTargets = $report->unknownTokens(); // string[]
// Invalid (=malformed) tokens
$invalidTargets = $report->invalidTokens(); // string[]
******************************
Send multiple messages at once
******************************
Expand Down

0 comments on commit a0ac2e5

Please sign in to comment.