Closed urumo closed 2 years ago
To send options to your app you need to nest it inside the proper field inside the payload. This is what I am doing on my app:
return PusherMessage::create()
->android()
->title($title)
->body($body)
->setOption('fcm.data.%MY_META_DATA_FIELD%', '%META_DATA%')
->withiOS(
PusherMessage::create()
->badge(1)
->body($title)
->setOption('apns.data.%MY_META_DATA_FIELD%', '%META_DATA%')
);
Hi, I'm using setOptions method to send options to my app, but in my app I don't receive the field of options, how can this be solved?
heres my code in react native:
and here is the laravel part: