R
R
rraderio2017-07-12 16:02:09
Android
rraderio, 2017-07-12 16:02:09

Internationalization of push notifications?

I know 2 ways:

  • keys + parameters: Send KEY and parameters from server to client; Creating the title and body of the notification on the client
  • strings: Send notification header and body from server to client

Which approach is better in a multilingual application and why?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Artem Voronov, 2017-07-12
@newross

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.

M
mitaichik, 2017-07-12
@mitaichik

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.

M
ManWithBear, 2017-07-12
@ManWithBear

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 question

Ask a Question

731 491 924 answers to any question