Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERROR: Method 'channel:' not defined in Plugin 'NfcPlugin'

See original GitHub issue


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) => {
      }, () => {
    } 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!


Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

bushevcommented, Jul 5, 2019

I’ve fixed this error. Not sure, what the channel method should do exactly, probably it is needed for the plugin initialization.


coachdesigncommented, Jul 20, 2020

Fixed in #399

During the test on the device, it gives me the same error. I updated to the latest version available 1.2.0

PhoneGap NFC - Cordova Plugin
(c)2017 Don Coleman
ERROR: Method 'channel:' not defined in Plugin 'NfcPlugin'
FAILED pluginJSON = ["NfcPlugin866892554","NfcPlugin","channel",[]]

My ionic info


   Ionic CLI          : 6.10.1
   Ionic Framework    : ionic-angular 3.9.10
   @ionic/app-scripts : 3.2.3


   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : android 9.0.0, ios 5.0.1
   Cordova Plugins   : cordova-plugin-ionic-webview 4.0.1, (and 18 other plugins)


   cordova-res                          : not installed
   native-run (update available: 1.0.0) : 0.2.3


   ios-deploy : 1.9.4
   ios-sim    : 8.0.2
   NodeJS     : v10.21.0
   npm        : 6.14.4
   OS         : macOS Catalina
   Xcode      : Xcode 11.5 Build version 11E608c
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found