ERROR: Method 'channel:' not defined in Plugin 'NfcPlugin'
See original GitHub issueHi,
I’m trying to develop an app with an NFC scanning functionality, here is my code:
if(this.nfc.enabled()) {
console.log('NFC enabled');
this.nfc.beginSession((data) => {
console.log(data)
}, () => {
console.log('error');
})
} else {
console.log('NFC not enabled');
}
When I try to run the app on my iOS device, this is the error I get:
ERROR: Method 'channel:' not defined in Plugin 'NfcPlugin'
Where is this “channel” method getting called?
I’m using Xcode 10.2, phonegap-nfc 1.0.3 and @ionic-native/nfc 5.4.0
Thanks for the help!
Davide
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Trouble with Cordova NFC plugin: nfc has no method 'connect'
My Cordova app (for Android, using phonegap-nfc plugin) successfully receives an NFC intent and displays the UID ...
Read more >Phonegap-nfc npm, Install phonegap nfc, Android write NFC tag ...
PhoneGap NFC Plugin The NFC plugin allows you to read and write NFC tags. You can also beam to, ... ERROR method channel...
Read more >branch-cordova-sdk - npm
Hyperlinks can navigate to your website, but not to your app. Branch fixes this. Branch deep links will grow your app by allowing...
Read more >Standalone Application User Guide - Eclipse Keyple
Access to the smart card service; Set up a plugin ... Use of these methods may be optional if the application does not...
Read more >Connectivity - Tizen Docs
The Linux wireless SW stack defines the WLAN hardware adaptation software ... The NFC plugin is implemented as a shared library and it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve fixed this error. Not sure, what the
channel
method should do exactly, probably it is needed for the plugin initialization.See https://github.com/bushev/device-com-nfc.cordova/commit/ea08e52a1c9395e387c5006fa51dcb6e24d15496
During the test on the device, it gives me the same error. I updated to the latest version available 1.2.0
My
ionic info