We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have tried the following code.
$message = new Message(); $message->setPriority('high'); $message->addRecipient(new Device('DEVICE_TOKEN')); $message ->setNotification(new Notification('Notification Title', 'Notification Body',"Image_URL")); //->setData(['key' => 'value']); $response = $client->send($message);
The text was updated successfully, but these errors were encountered:
You can use this method to set the icon of the notification:
// android only, set the name of your drawable resource as string $message->setIcon('name');
Or if you just want to send an image url and then capture it on client side you can send it as Data.
$notification->setData(['image_url' => 'absolute_path_of_image'])
Sorry, something went wrong.
No branches or pull requests
I have tried the following code.
$message = new Message();
$message->setPriority('high');
$message->addRecipient(new Device('DEVICE_TOKEN'));
$message
->setNotification(new Notification('Notification Title', 'Notification Body',"Image_URL"));
//->setData(['key' => 'value']);
$response = $client->send($message);
The text was updated successfully, but these errors were encountered: