api/push_notifications_api.py
def send_notification():
    """
    Sends a push notification to the participant, used for testing
    Expects a patient_id in the request body.
    """
    print(check_firebase_instance())
    message = messaging.Message(
        data={
            'type': 'fake',
            'content': 'hello good sir',
        },
        token=get_session_participant().get_fcm_token().token,
    )
    response = messaging.send(message)
    print('Successfully sent notification message:', response)
    return '', 204

    Sends a push notification to the participant, used for testing
    Expects a patient_id in the request body.
    
Sends a push notification to the participant, used for testing
Expects a patient_id in the request body.
Sends a push notification to the participant used for testing Expects a patient_id in the request body .
def send_notification():
    print(check_firebase_instance())
    message = messaging.Message(
        data={
            'type': 'fake',
            'content': 'hello good sir',
        },
        token=get_session_participant().get_fcm_token().token,
    )
    response = messaging.send(message)
    print('Successfully sent notification message:', response)
    return '', 204
def send_notification ( ) : print ( check_firebase_instance ( ) ) message = messaging . Message ( data = { 'type' : 'fake' , 'content' : 'hello good sir' , } , token = get_session_participant ( ) . get_fcm_token ( ) . token , ) response = messaging . send ( message ) print ( 'Successfully sent notification message:' , response ) return '' , 204
Sends a push notification to the participant, used for testing
Expects a patient_id in the request body.
Sends a push notification to the participant used for testing Expects a patient_id in the request body .
"""
    Sends a push notification to the participant, used for testing
    Expects a patient_id in the request body.
    """