singhpk89 / javapns

Automatically exported from code.google.com/p/javapns
0 stars 0 forks source link

support for title-loc-key (ios 8.2) #231

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

Hi 

this is rather a feature wish than a bug report.

As documented here:
https://developer.apple.com/library/mac/documentation/NetworkingInternet/Concept
ual/RemoteNotificationsPG/Chapters/ApplePushService.html

I need the following payload with "title-loc-key" inside alert.
Now it is only possible to add a string to as loc-key value.
(This becomes necessary for the apple watch).

{
    "aps": {
        "alert": {
            "loc-key": "some_key",
            "title-loc-key": "title_key"
        },
        "category": "my_category"
    },

    "customid" : [ "12345", "678" ]
}

Original issue reported on code.google.com by david.ob...@idealo.de on 9 Feb 2015 at 2:17