You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constinitNFC=()=>{constonBackgroundTag=async(tag: TagEvent|null)=>{console.log('onBackgroundTag',tag);};constinitalizeBackgroundTag=async()=>{// changedawaitNfcManager.start();constbgTag=awaitNfcManager.getBackgroundTag();onBackgroundTag(bgTag);// listen to other background tags after the app launchedNfcManager.setEventListener(NfcEvents.DiscoverBackgroundTag,onBackgroundTag);};initalizeBackgroundTag();};functionApp(){initNFC();return(<View><Text>HelloWorld</Text></View>);}exportdefaultApp;
I'm trying to retrieve tag informations when reading tag in background but the return value of NfcManager.getBackgroundTag is always null.
What am I doing wrong ? Is there something I miss ? Is it possible to do it ?
Environment:
Device: Iphone 14 Pro Max
iOS: 17.4.1
react-native-nfc-manager@3.14.14
Universal Links implemented and fully working
I've already tried many solutions proposed in previous issues, and it don't work.
The text was updated successfully, but these errors were encountered:
I can't retrieve the tagId when the application is launched in background on iOS thanks to the little NFC notification that appears when a tag is touched.
Hey !
I wrote the following code :
I'm trying to retrieve tag informations when reading tag in background but the return value of NfcManager.getBackgroundTag is always null.
What am I doing wrong ? Is there something I miss ? Is it possible to do it ?
Environment:
I've already tried many solutions proposed in previous issues, and it don't work.
The text was updated successfully, but these errors were encountered: