richsage / RMSPushNotificationsBundle

NOT MAINTAINED! ⛔️ Push notifications/messages for mobile devices. Supports iOS, Android (C2DM, GCM), Blackberry and Windows Mobile (toast only). A Symfony2 bundle.
MIT License
321 stars 152 forks source link

How to set title on iOS Push message? #138

Open MateuszWilk opened 8 years ago

MateuszWilk commented 8 years ago

According to this thread on stackoverflow and the apple documentation, since iOS8.2 there is a possibility to change the default title (which is the apps name) to a custom one. Is it already possible in this bundle, because i couldn't make it work, even setting the iOS message data to an array with title and body like so:

$message = new iOSMessage(); $message->setData([ 'title' => $title, 'body' => $body ]);

Anyone with the same problem or (even better) with a solution??

Chrisp1tv commented 7 years ago

Hi :) Did you get it working since your message ?

Maybe you should try to use setMessage, $message->setMessage(array('title' => $title, 'body' => $body)); instead of using setData.

I don't know if it works, but you should try it. :)

Psiiirus commented 6 years ago

Just tested it...isn't working ... even with the test push command and a payload it is not working.