Notification
Sets message
Send various types of message content to the watch.
_blePlugin.sendMessage(MessageBean info);
Parameter Description :
MessageBean:
value | value type | value description |
---|---|---|
message | String | Message content |
type | int | Messagetype(BleMessageType) |
versionCode | int | Firmware version (for example: MOY-AA2-1.7.6,which is 176) |
isHs | bool | Whether the MCU is HS, please confirm the MCU |
isSmallScreen | bool | Is the watch screen smaller than |
BleMessageType:
value | value type | value description |
---|---|---|
messagePhone | int | phone |
messageSms | int | SMS |
messageWechat | int | WeChat (Chinese Edition) |
messageQQ | int | |
messageFacebook | int | |
messageTwitter | int | |
messageWhatsapp | int | |
messageWechatIn | int | WeChat (International Edition) |
messageInstagrem | int | INSTAGREM |
messageSkype | int | SKYPE |
messageKakaotalk | int | KAKAOTALK |
messageLine | int | LINE |
messageOther | int | Other |
End call
Only android support.
When the watch receives a push of a phone type message, the watch will vibrate for a fixed time. Call this interface to stop the watch from vibrating when the watch answers the call or hangs up the call.
_blePlugin.endCall;
Sets up other push notifications
Only ios support.
Enable or disable other push notifications
_blePlugin.setNotification(List<int> NotificationType);
Parameter Description :
NotificationType:
type | call | sms | skype | line | ||||||
---|---|---|---|---|---|---|---|---|---|---|
id | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
support | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
type | kakao | messenger | zalo | telegram | viber | nateOn | gmail | calenda | dailyHunt | |
---|---|---|---|---|---|---|---|---|---|---|
id | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 |
support | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
type | outlook | yahoo | inshorts | phonepe | gpay | paytm | swiggy | zomato | uber | ola |
---|---|---|---|---|---|---|---|---|---|---|
id | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 |
support | yes | no | no | no | no | no | no | no | no | no |
type | reflexApp | snapchat | ytMusic | youTube | amazon | flipkart | netFlix | hotstar | amazonPrime | |
---|---|---|---|---|---|---|---|---|---|---|
id | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 |
support | no | no | no | no | no | no | no | no | no | no |
type | googleChat | wynk | googleDrive | dunzo | gaana | missCall | whatsAppBusines | other |
---|---|---|---|---|---|---|---|---|
id | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 128 |
support | no | no | no | no | no | yes | yes | yes |
Gets other push notifications
Only ios support.
List<int> NotificationType = await _blePlugin.getNotification;