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
Post a Comment