peng 1 vuosi sitten
vanhempi
commit
b8b83f0568
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4 0
      Service/PushService.py

+ 4 - 0
Service/PushService.py

@@ -163,6 +163,10 @@ class PushObject:
                          'received_at': n_time, 'event_time': n_time, 'event_type': event_type, 'nickname': nickname,
                          'uid': uid, 'channel': channel
                          }
+            if event_type in [606, 607]:
+                push_data['priority'] = 'high'
+                push_data['content_available'] = True
+                push_data['direct_boot_ok'] = 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',