php-firebase-cloud-messaging
php-firebase-cloud-messaging copied to clipboard
how to set content_available option for ios notification
I try to add new option in IOS notification its called content_available how to add it to notification to run it in background Regards
Add it as a data attribute:
$message
->setNotification(new Notification('some title', 'some body'))
->setData(['content_available' => 'value'])
;
`
Hi @waleedazam Check out the latest version, it should solve your problem ;)