# wx.onHCEMessage(function callback)

Start from base library version 1.7.0. Please remaining backward compatible.

with Promise style call: Not supported

Mini Program plugin: Not supported

Listening reception NFC Device message event, can register only one listener

# parameter

# function callback

receive NFC Callback functions for device message events

# parameter

# Object res
attribute type Introductions
messageType number Message Type
data ArrayBuffer messageType=1 time The client receives NFC Instructions for equipment
reason number messageType=2 Cause, reason

messageType Legal value

value Introductions Minimum version
1 HCE APDU Command type, the Mini Program needs to handle this instruction, and call SendHCEMessage Interface return processing instruction
2 Device Departure Event Type