php-firebase-cloud-messaging icon indicating copy to clipboard operation
php-firebase-cloud-messaging copied to clipboard

how to set content_available option for ios notification

Open waleedazam opened this issue 9 years ago • 2 comments

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

waleedazam avatar Oct 12 '16 15:10 waleedazam

Add it as a data attribute:

$message
    ->setNotification(new Notification('some title', 'some body'))
    ->setData(['content_available' => 'value'])
;
`

redjanym avatar Oct 21 '16 08:10 redjanym

Hi @waleedazam Check out the latest version, it should solve your problem ;)

nandorh avatar Dec 20 '16 14:12 nandorh