instapush/models/base.py
def send_message(self, message, **kwargs):
        """
        Sends a push notification to this device via GCM
        """

        from ..libs.gcm import gcm_send_message
        data = kwargs.pop("extra", {})
        if message is not None:
            data["message"] = message

        return gcm_send_message(registration_id=self.registration_id,
                data=data, **kwargs)
def send_message(self, message, **kwargs):
        """
        Sends a push notification to this device via GCM
        """

        from ..libs.gcm import gcm_send_message
        data = kwargs.pop("extra", {})
        if message is not None:
            data["message"] = message

        return gcm_send_message(registration_id=self.registration_id,
                data=data, **kwargs)
def send_message ( self , message , * * kwargs ) : from . . libs . gcm import gcm_send_message data = kwargs . pop ( "extra" , { } ) if message is not None : data [ "message" ] = message return gcm_send_message ( registration_id = self . registration_id , data = data , * * kwargs )
Sends a push notification to this device via GCM
Sends a push notification to this device via GCM