Community

Community Forums

Where our customers, developers, and more can come together to help each other with both general and technical questions about our products and services.

How do I set the locale_language tag in java API?

jonny.boman

I would like to target users with a specific language. It looks like the selector should be "locale_language" "en" (for english speaking)  but how do I make this happen in the Java API?

Can not find any selector for it at least.

Please sign in to leave a comment.

0
Avatar

Hello Jonny,

Thanks for contacting Airship. Chilun from Technical Support here at Airship and I would be happy to help with this.

Here is a link, which should contain an example of setting the locale language: 

https://docs.airship.com/api/ua/#operation/api/channels/open/post/requestbody

Kind regards,
Chilun Liu
Senior Technical Support Engineer
Airship

The Embassy Tea House, 195-205 Union Street, London, SE1 0LN
Portland | San Francisco | London | Paris | New York | New Delhi

chilun liu 0 votes
0
Avatar

I managed to do it by doing the following selector, but it would be nice to have something more explicit in the API...

Selectors.tagWithGroup(locale.toLanguageTag(), "ua_locale_language")


Selectors.deviceProperty(DeviceProperty.LANGUAGE, locale.toLanguageTag());
jonny.boman 0 votes