revtel / react-native-nfc-manager

React Native NFC module for Android & iOS
MIT License
1.33k stars 317 forks source link

NSInvalidArgumentException #635

Closed Rohindh-R closed 1 year ago

Rohindh-R commented 1 year ago

Code:

import NfcManager from 'react-native-nfc-manager';
import { logger } from '../../../components/Logger/logger';

export const checkNfcSupported = async (from='search') => {
    const deviceIsSupported = await NfcManager.isSupported()
    if (deviceIsSupported) {
        logger.log("Device Supports NFC")
    }else{
        logger.log("Device doesn't Supports NFC")
    }
}

App Crashes with this error: NSInvalidArgumentException -[__NSXPCInterfaceProxy_NFCHardwareManagerInterface areFeaturesSupported:completion:]: unrecognized selector sent to instance 0x281c3d130