Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kamleshwebtech opened this issue Aug 26, 2020 · 0 comments

Comments

@kamleshwebtech
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant