Browse Source

修改myCategory

locky 3 years ago
parent
commit
4307d2c0a8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Service/GatewayService.py

+ 1 - 1
Service/GatewayService.py

@@ -49,7 +49,7 @@ class GatewayPushService:
                          'received_at': n_time, 'event_time': n_time, 'event_type': event_type, 'nickname': nickname,
                          'image_url': launch_image
                          }
-            payload = apns2.Payload(alert=alert, custom=push_data, sound='default', category='MyCategory',
+            payload = apns2.Payload(alert=alert, custom=push_data, sound='default', category='myCategory',
                                     mutable_content=True)
             n = apns2.Notification(payload=payload, priority=apns2.PRIORITY_LOW)
             res = cli.push(n=n, device_token=token_val, topic=app_bundle_id)