Phone Number & Country Code Pre-fill

Setup phone pre-fill


To pre-fill the phone verification step of the Metamap plugin, use the
phoneCountryCode and phoneNumber parameters inside metadata. Both are
optional — you can send one or both.

ParameterValue
phoneCountryCodeISO 3166-1 alpha-2 country code as a String, e.g. "PE", "CL", "MX"
phoneNumberNational phone number as a String, digits only (no spaces, dashes, + or dialing code), e.g. "912345678"

For example, in order to pre-fill Peru as the country and 912345678 as the
phone number, use the code snippet below:

MetaMapFlutter.showMetaMapFlow(
    clientId: "YOUR_CLIENT_ID",
    flowId: "YOUR_FLOW_ID",
    metadata: {"phoneCountryCode": "PE", "phoneNumber": "912345678"});

📘

The country is matched by its ISO code ("PE"), not by its dialing

code. A value like "+51" will not select the country.


Did this page help you?