|
@@ -164,11 +164,13 @@ class PushObject:
|
|
|
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',
|
|
|
- android_channel_id=1,
|
|
|
extra_kwargs={'default_sound': True,
|
|
|
'default_vibrate_timings': True,
|
|
|
'default_light_settings': True,
|
|
|
- }
|
|
|
+ },
|
|
|
+ extra_notification_kwargs={
|
|
|
+ 'android_channel_id': 1
|
|
|
+ }
|
|
|
)
|
|
|
logger.info('fcm推送结果:{}'.format(result))
|
|
|
except Exception as e:
|