Automatically retrieve the native SIM card phone number for instant auto-fill and friction-free onboarding.
Automatically retrieve SIM card phone number details for instant login auto-fill. Nativine embeds native Android SubscriptionManager and TelephonyManager bridges, allowing web forms to auto-populate the user's verified phone number with zero manual typing.
Reducing onboarding friction increases conversion rates. Nativine's native Phone Number Detection plugin queries active SIM card profiles to auto-fill phone input fields:
To prompt for native phone number detection or auto-fill in JavaScript, call nativine.telephony.getPhoneNumber():
nativine.telephony.getPhoneNumber({
callback: 'onPhoneNumberDetected',
onError: 'onPhoneDetectionError'
});
function onPhoneNumberDetected(result) {
console.log("Detected Phone Number:", result.phoneNumber);
console.log("Country ISO Code:", result.countryIso);
document.getElementById('phone-input').value = result.phoneNumber;
}
| Parameter | Type | Description |
|---|---|---|
callback | string | Required. JS callback function receiving detected phone number string. |
Apple restricts direct SIM number reading for privacy. On iOS, Nativine utilizes native Password & Contact AutoFill sheets to populate numbers.
The bridge prompts a native bottom-sheet selection picker allowing the user to select which SIM number to share.