In IOS, Passcode is working fine but in Android its only working when popup opened for first time after opening app, in second time it just closes without any response or error
"rn-local-authentication": "^1.2.5"
here's my code:
LocalAuthentication.authenticateAsync({ reason: 'Please, authenticate!', fallbackToPinCodeAction: true, fallbackEnabled: true }) .then((response) => { console.log('response-->', response) if (response.success) { navigation.navigate('MyProfile') } else { alert(response.error) } }) .catch((err) => { console.log('err->', err) })
In IOS, Passcode is working fine but in Android its only working when popup opened for first time after opening app, in second time it just closes without any response or error
"rn-local-authentication": "^1.2.5"
here's my code:
LocalAuthentication.authenticateAsync({ reason: 'Please, authenticate!', fallbackToPinCodeAction: true, fallbackEnabled: true }) .then((response) => { console.log('response-->', response) if (response.success) { navigation.navigate('MyProfile') } else { alert(response.error) } }) .catch((err) => { console.log('err->', err) })