-
Notifications
You must be signed in to change notification settings - Fork 182
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
Can't send notification to External User ID #166
Comments
the error says "nclude_external_user_ids must be an array of non empty strings", can you paste the full code |
You can set channel_for_external_user_ids as a param like this
then this function will work. |
That seems to work when you define the number directly, but how can I pass a variable to it like $userId? Guess I'll keep playing with it lol |
This works for passing in $userId if you'd like to:
|
Laravel Version
6.20.44
PHP Version
7.3.27
Laravel-Onesignal Version
1.0.7
Description
I was implemented
OneSignal::sendNotificationToExternalUser
method to send notification for my users. But, then I'm getting an error like thisI was looking for the root cause, then I realized that the problem is because of my
$userId
variable is an integer data type.Then I cast my
$userId
variable as a stringThe text was updated successfully, but these errors were encountered: