Skip to content

How can we send notification message to all app users instead of providing device ids #39

@kamleshwebtech

Description

@kamleshwebtech

Kindly suggest, how can we send notification message to all app users instead of providing devices token?

If i do not provide device-token then system returns an error:

Fatal error: Uncaught UnexpectedValueException: message must have at least one recipient in D:\xampp\htdocs\sites\test\vendor\paragraph1\php-fcm\src\Message.php:130 Stack trace: #0 [internal function]: paragraph1\phpFCM\Message->jsonSerialize() #1 D:\xampp\htdocs\sites\test\vendor\paragraph1\php-fcm\src\Client.php(72): json_encode(Object(paragraph1\phpFCM\Message)) #2 D:\xampp\htdocs\sites\test\index.php(24): paragraph1\phpFCM\Client->send(Object(paragraph1\phpFCM\Message)) #3 {main} thrown in D:\xampp\htdocs\sites\test\vendor\paragraph1\php-fcm\src\Message.php on line 130

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions