apns4ex icon indicating copy to clipboard operation
apns4ex copied to clipboard

alert-message string for Localizable.strings

Open jeandavid opened this issue 9 years ago • 1 comments
trafficstars

I think there might be an issue with sending alert-message string for Localizable.strings.

Apple docs never clearly say it's an exclusive or between the 'body' key and the 'loc_key' + 'loc_args' keys. However, my tests show that in alerts including a 'body' key != nil, iOS seems to ignore the 'loc_key' + 'loc_args' keys.

Your private function 'format_loc' in the APNS.Worker module returns an alert with a body never nil (at minimum an empty string). I think this prevents any alert-message string for Localizable.strings from being activated on the user device.

jeandavid avatar Nov 25 '15 15:11 jeandavid

@jeandavid as per this table the "body" key is not optional (value type is string). But I've reviewed the doc more carefully and found examples of using "alert" without "body" key specified. I think you might be right, I will test it. Thank you!

chvanikoff avatar Nov 25 '15 15:11 chvanikoff