Answer the question
In order to leave comments, you need to log in
Internationalization of push notifications?
I know 2 ways:
Answer the question
In order to leave comments, you need to log in
It is better to form the notification text and title on the server, because at any time you may need to change them. In the case of keys + parameters, for this the user will have to update the application, which can not be expected.
There are only 2 options: either do it on the server or on the client. To do it on the server, you need to somehow get the language of the client. For example, I pass the language in the header of every request from the client. Another option is to monitor the client's language and pass on change.
But, IMHO, it is preferable to do it on the client. Send date-message and form text in the application.
Send keys for localization strings and the device itself will take localization from your application. More in guides .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question