Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting the title of a Push Notification?

Is it possible to set the title of a push notification? It looks like what I'm calling the title of the notification is simply the name of the associated application. I have not seen anything in the docs that mention any way to set this value. In the iOS5 notification pull-down view, emails show up with name of the sender and the subject as the title. Is this possible, or is the OS rendering email notifications in a special way?

like image 629
tyler Avatar asked Nov 30 '11 01:11

tyler


1 Answers

No, this is not possible. It will always use the name of the application as the title. There's no public API to set the title.

Update: This is now possible for iOS 8.2+ devices. Use the title parameter in the aps dictionary to set a custom title.

like image 187
August Lilleaas Avatar answered Nov 15 '22 12:11

August Lilleaas