How do I set the locale_language tag in java API?

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 post

Comments

2 comments

  • 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

    Comment actions Permalink
    0
  • 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());
    Comment actions Permalink
    0

Please sign in to leave a comment.