Closed tlkiong closed 8 years ago
In case anyone is here for facing this same issue I faced:
Ensure cordova-plugin-whitelist is installed and (for simplicity sake. please edit it to fit your use case) the following statement be in your index.html
<meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *">
I am getting 'ReferenceError: nfc is not defined" following the exact example code. This is really weird as I am sure "nfc" is a global object. Does anyone have any idea why this is happening?
*Running on Android