I am using Expo Local Authentication finger print sensor in my 2 applications. Both these apps detecting finger print in android, but misbehaving in IOS. When I install both apps in IOS, the last installed IPA will detect the finger print sensor correctly, but the first installed IPA does not trigger the sensor and it does not even show any popup "Scan your finger.". But its all working in Android.
const signInTouch = async () => {
try{
let result = await LocalAuthentication.authenticateAsync(
{promptMessage:'Scan your finger.'}
);
console.log('Scan Result:', result);
if(result.success){
navigation.navigate('HomePage');
}
}
catch(error){
console.log(error);
Alert.alert('error', error.toString());
}
}
Okay finally I solved it!!! My both apps were using expo sdk 38 and react-native sdk 38. I just downgraded only one app to
the other app still using sdk 39. and then I removed the node_modules and package-lock.json from the downgraded app.
and then I Installed new modules in it
solved some compatible warning of libraries by doing
Built the app, and installed both apps and it worked!!. :)