Ver Fonte

华为推送增加参数

peng há 2 anos atrás
pai
commit
071d2bd5bf
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      Service/HuaweiPushService/HuaweiPushService.py

+ 2 - 1
Service/HuaweiPushService/HuaweiPushService.py

@@ -91,7 +91,8 @@ class HuaweiPushObject:
             default_sound=True,
             click_action=messaging.AndroidClickAction(
                 action_type=1,
-                intent='intent://com.huawei.codelabpush/deeplink?#Intent;scheme=pushscheme;launchFlags=0x4000000;i.age=180;S.name=abc;end'),
+                intent='intent://com.huawei.codelabpush/deeplink?#Intent;scheme=pushscheme;launchFlags=0x4000000;i.age=180;S.name=abc;end',
+                action='android.intent.action.VIEW'),
             body_loc_key='M.String.body',
             body_loc_args=('boy', 'dog'),
             title_loc_key='M.String.title',