tencent cloud

All product documents
Tencent Cloud Super App as a Service
NFC-getNFCAdapter
Last updated: 2024-11-21 18:48:11
NFC-getNFCAdapter
Last updated: 2024-11-21 18:48:11
The application of this API is through the NFCAdapter wx.getNFCAdapter().
Note:
Compatibility:
Android Version: Supported.
iOS Version: Not Supported.
Function Description: Acquire NFC Instance.
Parameters and Description: Returns NFCAdapter NFC Instance.
Error Code
Error Codes
Error Message
Note
13000
The device does not support NFC
-
13001
The system's NFC switch is not activated.
-
13010
An unknown error occurred.
-
13019
user is not authorized
User has not granted permission.
13011
invalid parameter
Invalid parameter
13012
parse NdefMessage failed
Failed to parse the parameter into NdefMessage.
13021
NFC discovery already started
NFC scanning has already commenced.
13018
NFC discovery has not started
Attempted to halt NFC scanning without initiating it.
13022
Tech already connected
The tag has been successfully connected.
13023
Tech has not connected
Attempted to disconnect without a tag being connected.
13013
NFC tag has not been discovered
No NFC tag was detected.
13014
invalid tech
Invalid tag technology.
13015
unavailable tech
Failed to acquire the corresponding technology from the tag.
13024
function not support
The current tag technology does not support this feature.
13017
system internal error
The related read-write operation has failed.
13016
connect fail
Connection failed

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 available.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon