瀏覽代碼

谷歌推送增加channel_id

peng 2 年之前
父節點
當前提交
c2c69025d4
共有 2 個文件被更改,包括 3 次插入7 次删除
  1. 2 4
      Service/DevicePushService.py
  2. 1 3
      Service/PushService.py

+ 2 - 4
Service/DevicePushService.py

@@ -486,11 +486,9 @@ class DevicePushService:
                                                    extra_kwargs={
                                                        'default_vibrate_timings': True,
                                                        'default_sound': True,
-                                                       'default_light_settings': True
-                                                   },
-                                                   extra_notification_kwargs={
+                                                       'default_light_settings': True,
                                                        'click_action': 'android.intent.action.VIEW'
-                                                   }
+                                                   },
                                                    )
         return result
 

+ 1 - 3
Service/PushService.py

@@ -166,10 +166,8 @@ class PushObject:
                                                        extra_kwargs={'default_sound': True,
                                                                      'default_vibrate_timings': True,
                                                                      'default_light_settings': True,
+                                                                     'click_action': 'android.intent.action.VIEW'
                                                                      },
-                                                       extra_notification_kwargs={
-                                                           'click_action': 'android.intent.action.VIEW'
-                                                       }
                                                        )
             logger.info('fcm推送结果:{}'.format(result))
         except Exception as e: