Push Noti with image for Ios
ehazizaj opened this issue · comments
Does this package allows to send image push noti for ios?
Hi @erjonhazizaj ,
You may achieve that by sending the image url as extraPayLoad and then display it when you receive the notification.
It could be like this:
$push->setMessage([
'aps' => [
'alert' => [
'title' => 'This is the title',
'body' => 'This is the body'
],
'sound' => 'default'
],
'extraPayLoad' => [
'image_url' => 'http://www.my-domain.com/my-image.png',
]
])
->setDevicesToken(['deviceToken1','deviceToken2','deviceToken3'...]);
Hope that helps :)
Hi @erjonhazizaj
Did that work for you?