May 19, 2021 WeChat Mini Program Development Document
Base library 1.7.0 starts to support, and low versions need to be compatible.
Listen to receive NFC device message events and can only register one monitor
A callback function that receives NFC device message events
Property | Type | Description |
---|---|---|
messageType | number | The message type |
data | ArrayBuffer |
messageType=1
the client receives instructions from the NFC device
|
reason | number |
messageType=2
when the reason
|
The legal value of messageType
Value | Description | The lowest version |
---|---|---|
1 | HCE APDU Command type, the small program needs to process this instruction and call the sendHCEMessage interface to return the processing instruction | |
2 | The type of device off-site event |