|
@@ -62,14 +62,11 @@ class GatewayPushService:
|
|
|
try:
|
|
|
serverKey = FCM_CONFIG[app_bundle_id]
|
|
|
push_service = FCMNotification(api_key=serverKey)
|
|
|
- push_data = {'alert': 'Motion', 'msg': '', 'sound': 'sound.aif', 'zpush': '1',
|
|
|
+ push_data = {'alert': 'Motion', 'msg': '', 'sound': 'sound.aif', 'zpush': '1', 'image': image,
|
|
|
'received_at': n_time, 'event_time': n_time, 'event_type': event_type, 'nickname': nickname
|
|
|
}
|
|
|
result = push_service.notify_single_device(registration_id=token_val, message_title=msg_title,
|
|
|
message_body=msg_text, data_message=push_data,
|
|
|
- extra_notification_kwargs={
|
|
|
- 'image': image
|
|
|
- },
|
|
|
extra_kwargs={'default_sound': True,
|
|
|
'default_vibrate_timings': True,
|
|
|
'default_light_settings': True,
|