Skip to content
This repository was archived by the owner on Nov 26, 2020. It is now read-only.

Not able to read the NFC data - Event Emitting from Android not working #4

Open
mshabeeb-nm opened this issue May 8, 2017 · 5 comments

Comments

@mshabeeb-nm
Copy link

I am using react native 0.42.0. The event emit code from android is not triggering the listener event in react native.

@0is1
Copy link

0is1 commented Jun 1, 2017

Just for information that I had also problems to get any events to trigger (testing in Android 7) but when I installed and linked this module: https://github.com/observ3r/nfc-ndef-react-native --> react-native-nfc started mystically to work...

So I don't use any nfc-ndef-react-native functionality in React Native code but react-native-nfc just works now...

@giordy
Copy link
Member

giordy commented Jun 1, 2017

@0is1 thanks for the feedback.
Did you just install the module or did you also apply the modifications to AndroidManifest.xml?

@0is1
Copy link

0is1 commented Jun 1, 2017

@giordy I just installed and linked the nfc-ndef-react-native-module. Nothing else. And if I remove it --> react-native-nfc stops to work.

My AndroidManifest.xml and nfc_tech_filter.xml etc. are as described in README.md in https://github.com/Novadart/react-native-nfc

@jkbbwr
Copy link

jkbbwr commented Jul 13, 2017

That is both scary and funny at the same time.

@yangzhou15
Copy link

Just for information that I had also problems to get any events to trigger (testing in Android 7) but when I installed and linked this module: https://github.com/observ3r/nfc-ndef-react-native --> react-native-nfc started mystically to work...

So I don't use any nfc-ndef-react-native functionality in React Native code but react-native-nfc just works now...

This fix works perfectly for me... don't know why either...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants