Skip to content

sendNotificationCustom method send to all instead of "include_aliases" #193

@syamsoul

Description

@syamsoul

the code below will send to all instead of specific users...

however, i already found the issue,,, i will create PR for that

$params = [
      'contents' => [
          'en' => $message,
      ],
      'target_channel' => 'push',
      'include_aliases' => [
          'external_id' => ["user_{$user->id}"],
      ],
];

OneSignalClient::async()->sendNotificationCustom($params);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions