From 2b77ad0e1f407903d85c3b7bdaae0022c4ec9bc3 Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期二, 08 九月 2020 14:54:00 +0800
Subject: [PATCH] fix push bug

---
 service/msgPush.go |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/service/msgPush.go b/service/msgPush.go
index 7f19c39..2a0c879 100644
--- a/service/msgPush.go
+++ b/service/msgPush.go
@@ -184,6 +184,7 @@
 	androidPush := map[string]map[string]map[string]string {
 		"ups": {
 			"notification": {
+				"title": title,
 				"body": msg,
 				"big_text": msg,
 				"click_type": "intent",
@@ -195,6 +196,7 @@
 		"type":"notify",
 		"aps":map[string]interface{}{
 			"alert":map[string]string{
+				"title": title,
 				"body": msg,
 			},
 			"content-available":0,
@@ -207,6 +209,7 @@
 		},
 		"push_message": map[string]map[string]string {
 			"notification": {
+				"title": title,
 				"body": msg,
 				"click_type": "intent",
 				"intent": intent,

--
Gitblit v1.8.0