def send_message(
            self,
            title=None,
            body=None,
            icon=None,
            data=None,
            sound=None,
            badge=None,
            api_key=None,
            **kwargs):
        """
        Send single notification message.
        """
        from .fcm import fcm_send_message
        result = fcm_send_message(
            registration_id=str(self.registration_id),
            title=title,
            body=body,
            icon=icon,
            data=data,
            sound=sound,
            badge=badge,
            api_key=api_key,
            **kwargs
        )

        self._deactivate_device_on_error_result(result)
        return result
def send_message ( self , title = None , body = None , icon = None , data = None , sound = None , badge = None , api_key = None , ** kwargs ) : from . fcm import fcm_send_message result = fcm_send_message ( registration_id = str ( self . registration_id ) , title = title , body = body , icon = icon , data = data , sound = sound , badge = badge , api_key = api_key , ** kwargs ) self . _deactivate_device_on_error_result ( result ) return result
Send single notification message.