Ver código fonte

优化谷歌推送铃声

peng 1 ano atrás
pai
commit
64a4eca52a
1 arquivos alterados com 1 adições e 2 exclusões
  1. 1 2
      Service/PushService.py

+ 1 - 2
Service/PushService.py

@@ -178,11 +178,10 @@ class PushObject:
                                                                          },
                                                            )
             else:
-                default_sound = True
                 result = push_service.notify_single_device(registration_id=token_val, message_title=msg_title,
                                                            message_body=msg_text, data_message=push_data,
                                                            click_action='android.intent.action.VIEW',
-                                                           extra_kwargs={'default_sound': default_sound,
+                                                           extra_kwargs={'default_sound': True,
                                                                          'default_vibrate_timings': True,
                                                                          'default_light_settings': True,
                                                                          },