php-apns icon indicating copy to clipboard operation
php-apns copied to clipboard

Pass multiple parameters along with body

Open tejasrsuthar opened this issue 8 years ago • 1 comments

Thanks for the library. Its working pretty fine.

I've sort of a query rather than an issue,

Can I send multiple parameters along with message?

$sender->send($deviceToken, 'Title', 'testing', 'http://deeplink.com');

Here I need to pass extra RoomId parameter along with 'testing' text.

Actually, I need to parse received parameters from push notification IOS side and need to have certain action based on passed parameters.

Is it possible?

Thanks,

tejasrsuthar avatar Aug 04 '16 05:08 tejasrsuthar

Hey @tejasrsuthar

It's a late reply but instead of sending that deeplink you can pass a array with parameters. That will be in the payload of the notification.

tim-hanssen avatar Oct 20 '16 14:10 tim-hanssen