samcodes-notifications icon indicating copy to clipboard operation
samcodes-notifications copied to clipboard

Only first character of (non-ASCII) notification messages appear in demo app

Open Tw1ddle opened this issue 3 years ago • 0 comments

Just noting this in case anyone else runs into this issue. My demo app for the haxelib prints notification messages in a variety of languages, and these messages used to display correctly.

https://github.com/Tw1ddle/samcodes-notifications-demo

Under Haxe 4.1.2 and hxcpp 4.2.1 and OpenFL 9.1.0, the notification message bodies only ever include the first character of the message, "I" (of messages that read like "Id x: non-english-text..."), on iOS.

It seems to work fine for strings that are all in English, but using messages from an array of strings that include other stuff, including non-ASCII characters, does not work.

Perhaps there is a string encoding/conversion issue going over my head: https://github.com/Tw1ddle/samcodes-notifications/blob/master/project/iphone/SamcodesNotifications.mm#L184

Tw1ddle avatar May 15 '21 15:05 Tw1ddle