You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Arguments for Push Message localisation in SendExchange do not seem to work #98
Sending an Exchange with the GKTurnBasedMatch.SendExchange method with a localisation key that is set in the Localizable.strings and one or more arguments leads to a push message that only displays the localisation key (in my example LC_PushMsg_MatchEnded). If the message does not contain arguments the push message is correctly localized and displayed.
Example of localizable.strings entry with one argument to be replaced:
"LC_PushMsg_MatchEnded" = "The match has ended. The winner is %@";
I also tried
"LC_PushMsg_MatchEnded" = "The match has ended. The winner is %1$@";
I even added a log to the swift file to make sure that exactly one argument is passed to the native SendExchange method (for this example) and the call seems to have the right argument.
I am sorry for the confusion, but it seems that localisation of Push Messages generally does not seem to work (not only if there are arguments). Or maybe there is something I am doing wrong. I wrote my own post process script that copies the Lozalizable.string files to the XCode project and they end up in the IPA file in the root folder of the .app
Activity
michaelclockstone commentedon Jun 2, 2026
I am sorry for the confusion, but it seems that localisation of Push Messages generally does not seem to work (not only if there are arguments). Or maybe there is something I am doing wrong. I wrote my own post process script that copies the Lozalizable.string files to the XCode project and they end up in the IPA file in the root folder of the .app
I believe that my files and the itegration are correct, because if I add a test log it is correctly localized:
NSLog(@"%@", NSLocalizedString(@"LC_PushMsg_Score_Improved", nil));Only GameKit push messages do not localize.
ryzngard commentedon Jun 2, 2026
Thanks for the clarification @michaelclockstone ! I'll do some digging to see if this is Unity specific or also applies to other GameKit games.