public static function addDriver(
string $name,
Rhymix\Framework\Drivers\PushInterface $driver
): void
Add a custom Push driver.
public static function getDriver(string $name): ?object
Get the default driver.
public static function getSupportedDrivers(): array
Get the list of supported Push drivers.
public function __construct()
The constructor.
public function setFrom(int $member_srl): bool
Set the sender's member_srl.
public function getFrom(): int
Get the sender's phone number.
public function addTo(int $member_srl): bool
Add a recipient.
public function getRecipients(): array
Get the list of recipients.
public function addTopic(string $topic): bool
Add a topic.
public function getTopics(): array
Get the list of topics.
public function setSubject(string $subject): bool
Set the subject.
public function getSubject(): string
Get the subject.
public function setContent(string $content): bool
Set the content.
public function getContent(): string
Get the content.
public function setImage(string $url): bool
Set the image.
public function getImage(): string
Get the image.
public function setClickAction(string $click_action): bool
Set an click-action to associate with this push notification.
public function getClickAction(): string
Get the click-action associated with this push notification.
public function setSound(string $sound): bool
Set a sound to associate with this push notification.
public function setBadge(string $badge): bool
Set a badge to associate with this push notification.
public function setIcon(string $icon): bool
Set an icon to associate with this push notification.
public function setTag(string $tag): bool
Set a tag to associate with this push notification.
public function setColor(string $color): bool
Set a color to associate with this push notification.
public function setAndroidChannelId(string $android_channel_id): bool
Set an android-channel-id to associate with this push notification.
public function getMetadata(): array
Get notification array
public function setData(array $data): bool
Set a data to associate with this push notification.
public function getData(): array
Get the data associated with this push notification.
public function setURL(string $url): bool
Set a URL to associate with this push notification.
public function getURL(): string
Get the URL associated with this push notification.
public function send(bool $sync = false): bool
Send the message.
public static function sendAsync(self $push): void
Send asynchronously (for Queue integration).
public function isSent(): bool
Check if the message was sent.
public function getCaller(): string
Get caller information.
public function getErrors(): array
Get errors.
public function getSuccessTokens(): array
Get success tokens.
public function getDeletedTokens(): array
Get deleted tokens.
public function getUpdatedTokens(): array
Get updated tokens.
public function addError(string $message): void
Add an error message.