adobkin / libcapn

A simple C Library for interact with the Apple Push Notification Service (APNs)
MIT License
100 stars 35 forks source link

Adding "title", "title-loc-key", "title-loc-args" , "mutable-content" property #34

Open SkyWalkeer opened 7 years ago

SkyWalkeer commented 7 years ago

Hi, is it possible to add "title", "title-loc-key", "title-loc-args", "mutable-content" property inside aps json? I need this for display notification title. ex:

{
     "aps" :  {  
                "alert":{ 
                    "title"          :   "string"
                    "body"           :   "string",
                    "title-loc-key"  :   "string or null"
                    "title-loc-args" :   "array of strings or null"
                    "action-loc-key" :   "string or null"
                    "loc-key"        :   "string"
                    "loc-args"       :   "array of strings"
                    "launch-image"   :   "string"
                },
                "badge"             :    number,
                "sound"             :    "string"
                "content-available" :    number;
                "category"          :    "string"
                "mutable-content"   :    number;
     }
}

Thank you.