Closed maxencewrt closed 2 years ago
It seems the issue is there :
readTag = withAndroidPrompt(async () => {
let tag = "toto";
try {
await NfcManager.requestTechnology([NfcTech.Ndef]);
tag = await NfcManager.getTag();
tag.ndefStatus = await NfcManager.ndefHandler.getNdefStatus();
if (Platform.OS === 'ios') {
await NfcManager.setAlertMessageIOS('Success');
}
} catch (ex) {
// for tag reading, we don't actually need to show any error
console.log(ex);
} finally {
NfcManager.cancelTechnologyRequest();
}
return tag;
});
Have you any idea why the TRY don't work and I directly go in catch ?
Just need to upgrade nfc package
Hello :)
First of all thanks a lot for this amazing repo ! I have a quick question, when I launch the following code:
I have the following issue :
It seems impossible to me to scan a tag. Have you any idea ?
Thanks a lot !