Giter VIP home page Giter VIP logo

Comments (6)

whitedogg13 avatar whitedogg13 commented on August 20, 2024

Hi, currently we haven't bridged the enableReaderMode API. Welcome to submit a PR!

from react-native-nfc-manager.

whitedogg13 avatar whitedogg13 commented on August 20, 2024

@dspencer926 Hi, with the latest 1.2.0 release, now we can pass this flag with registerTagEvent to disable the sound!

from react-native-nfc-manager.

JohnTheo13 avatar JohnTheo13 commented on August 20, 2024

Which flag is this cause it's not mentioned in the documentation

from react-native-nfc-manager.

rahamin1 avatar rahamin1 commented on August 20, 2024

Looking at the code, it seems that the flag is FLAG_READER_NO_PLATFORM_SOUNDS: https://bit.ly/3e1heXV,
but how do I pass it to registerTagEvent?

I thought that I should write:

NfcManager.registerTagEvent({alertMessage: 'my message', readerModeFlags: NfcAdapter.FLAG_READER_NO_PLATFORM_SOUNDS});

but it doesn't work...

Since this issue is closed, i will open a new one.

--
key: audio

from react-native-nfc-manager.

pilattebe avatar pilattebe commented on August 20, 2024

@rahamin1, I see that you haven't opened a new issue. Could you share your solution if you've solved it ?

For future reference, I will link this part of the documentation. Not because it's related to the current issue, but because it shows the correct syntax for adding and composing tags.

It seems the documentation example is not working either.

from react-native-nfc-manager.

rahamin1 avatar rahamin1 commented on August 20, 2024

I didn't solve it.

You can see some more info about this in https://stackoverflow.com/questions/62849096/disable-sound-in-react-native-nfc-manager-v2.

from react-native-nfc-manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.