|
@@ -57,7 +57,7 @@ class GatewayPushService:
|
|
|
|
|
|
# android fcm 推送
|
|
|
@staticmethod
|
|
|
- def android_fcm_push(nickname, app_bundle_id, token_val, n_time, event_type, msg_title, msg_text, message_icon):
|
|
|
+ def android_fcm_push(nickname, app_bundle_id, token_val, n_time, event_type, msg_title, msg_text, image):
|
|
|
try:
|
|
|
serverKey = FCM_CONFIG[app_bundle_id]
|
|
|
push_service = FCMNotification(api_key=serverKey)
|
|
@@ -66,10 +66,10 @@ class GatewayPushService:
|
|
|
}
|
|
|
result = push_service.notify_single_device(registration_id=token_val, message_title=msg_title,
|
|
|
message_body=msg_text, data_message=push_data,
|
|
|
- message_icon=message_icon,
|
|
|
extra_kwargs={'default_sound': True,
|
|
|
'default_vibrate_timings': True,
|
|
|
- 'default_light_settings': True
|
|
|
+ 'default_light_settings': True,
|
|
|
+ 'image': image,
|
|
|
}
|
|
|
)
|
|
|
return result
|