Open syamsoul opened 5 months ago
temporary workaround (while waiting fix released):
just add included_segments
and put any random value...
$params = [
'contents' => [
'en' => $message,
],
'target_channel' => 'push',
'include_aliases' => [
'external_id' => ["user_{$user->id}"],
],
'included_segments' => ["not_exist_just_a_temp_workaround"], // TODO: this is for temporary, after the fix released, can update package and remove this
];
OneSignalClient::async()->sendNotificationCustom($params);
the code below will send to all instead of specific users...
however, i already found the issue,,, i will create PR for that