o
    cia                  	   @   s,   d dl mZ d	dedededefddZdS )
    )	messagingNtokentitlebodydatac              
   C   sr   zt jt j||d|pi | d}t |}td|  W dS  ty8 } ztd|  W Y d}~dS d}~ww )z;
    Send FCM notification to a specific device token.
    )r   r   )notificationr   r   u    ✅ FCM push sent successfully: Tu   ⚠️ FCM push failed: NF)r   MessageNotificationsendprint	Exception)r   r   r   r   messageresponsee r   3/var/www/html/moveengine/app/utils/notifications.pysend_push_notification   s   
r   )N)firebase_adminr   strdictr   r   r   r   r   <module>   s     