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.
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.
Didn't find what you were looking for?
New postHello 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
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());
Please sign in to leave a comment.
Comments
2 comments