ios - How to deal with CKNotificationInfo 'desiredKeys' max 3 keys? -


i'm setting notification 8 keys, information need in other device receive notification. problem documentation says it's possible set 3 keys. of information keys can extract message, dont think thats it's best way of doing that, such because message can in 8 different languages. how can send information push notification?

when prepare notification, take @ cknotificationinfo. in class find these properties:

you have set properties above key of localization strings file.

//in .strings file... "notication_body" = "¡hola mundo!"; "notifcation_action" = "cerrar";  "notication_body" = "hello world!"; "notifcation_action" = "close";  // in cknotificationinfo object...  notificationinfo.alertlocalizationkey = "notication_body" notificationinfo.alertactionlocalizationkey= "notifcation_action" 

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -