V3 Notification Message Reminder
Function: getNotifyMsgV3
Flutter Example:
/// Notification message reminder event number
noticeMessageV3(
evtBase: _VBusEvtBase.base_app_set,
evtType: _VBusEvtType.func_v3_notice_message),
/// Notification message reminder
libManager.send(evt: CmdEvtType.noticeMessageV3, json: jsonEncode(json));
JSON Fields Sent by the App:
Field Name | Field Type | Field Description |
---|---|---|
verison | int | Protocol library version number Default version=1 Version=2 is the sent format with msg_id |
evt_type | int | Message application type |
msg_id | int | Message ID If evt_type is message reminder, mesg_ID is valid |
support_answering | bool | Support answering: 1 Do not support answering: 0 |
support_mute | bool | Support mute: 1 Do not support mute: 0 |
support_hang_up | bool | Support hang up: 1 Do not support hang up: 0 |
contact | char [] | Contact name (maximum 63 bytes) |
phone_number | char [] | Phone number (maximum 31 bytes) |
data_text | char [] | Message content (maximum 249 bytes) |
Example:
{
"verison": 2,
"evt_type": 12289,
"msg_id": 1,
"support_answering": false,
"support_mute": false,
"support_hang_up": false,
"msg_data": "Hello",
"contact": "Lihua",
"phone_number": "13340216580",
"data_text": "123456"
}
JSON Fields Received by the App:
Field Name | Field Type | Field Description |
---|---|---|
is_success | int | 1: Success, 0: Failure |
Example:
{
"is_success": 1
}