persona-id / inquiry-android-2

Watch this repo to get notified of Android Persona SDK updates
1 stars 1 forks source link

Field selectedCountryCode doesn't work on Android #1

Closed dulciejackson closed 1 year ago

dulciejackson commented 2 years ago

Using react-native-persona v2.2.10 (Android SDK 2.2.21)

I am trying to pass a pre-filled country code through using Persona, so that the country picker defaults to United Kingdom rather than United States. Using the react-native-persona package this works for iOS, but Android still shows United States as the default.

Code example:

Inquiry.fromTemplate(PERSONA_TEMPLATE_ID)
        .environment(PERSONA_ENVIRONMENT as Environment)
        .fields(
          Fields.builder()
            .string("selectedCountryCode", "GB")
            .build(),
        )
...
SalvatoreT commented 2 years ago

Hey @dulciejackson, we're taking a look! Thank you for raising the issue.

SalvatoreT commented 2 years ago

@dulciejackson, we just shipped the React Native SDK v2.2.11 which fixed the issue you describe here.

Thank you for your patience, and please verify this worked for you when you get the chance.