Closed dishantmehta-easternts closed 5 years ago
Close because of lack of activity. If you should encounter this issue again, just open a new issue.
As the error says: "You may only send to one delivery channel at a time." and according to OneSignal Documentation here: https://documentation.onesignal.com/reference/create-notification#platform-to-deliver-to
When you use the "_include_external_userids" or "_include_playerids" to Send to Specific Devices, you can use the parameter "_channel_for_external_userids" to specify the channel which can be "push", "email" or "sms". Then in your code:
OneSignalMessage::create()
...
->setParameter('channel_for_external_user_ids', 'push')
...;
In order to send same push notification to multiple users (for eg. all user following another user in a social networking app) while Referring to the documentation (http://laravel-notification-channels.com/onesignal/), it is mentioned to pass an array with multiple player ID from One Signal.
While we try to send push notification for above setup, it throws an error whose stack trace is as below.