Skip to content
This repository has been archived by the owner on Jun 6, 2021. It is now read-only.

How to set title on iOS Push message? #138

Open
MateuszWilk opened this issue May 20, 2016 · 2 comments
Open

How to set title on iOS Push message? #138

MateuszWilk opened this issue May 20, 2016 · 2 comments

Comments

@MateuszWilk
Copy link

MateuszWilk commented May 20, 2016

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
Copy link

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
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants