instapush/libs/apns.py
def apns_send_bulk_message(registration_ids, alert, **kwargs):
    """
    Sends an APNS notification to one or more registration_ids.
    The registration_ids argument needs to be a list.

    Note that if set alert should always be a string. If it is not set,
    it won't be included in the notification. You will need to pass None
    to this for silent notifications.
    """
    with closing(_apns_create_socket_to_push(**kwargs)) as socket:
        for identifier, registration_id in enumerate(registration_ids):
            _apns_send(registration_id, alert, identifier=identifier, socket=socket, **kwargs)
        _apns_check_errors(socket)
def apns_send_bulk_message(registration_ids, alert, **kwargs):
    with closing(_apns_create_socket_to_push(**kwargs)) as socket:
        for identifier, registration_id in enumerate(registration_ids):
            _apns_send(registration_id, alert, identifier=identifier, socket=socket, **kwargs)
        _apns_check_errors(socket)
def apns_send_bulk_message ( registration_ids , alert , * * kwargs ) : with closing ( _apns_create_socket_to_push ( * * kwargs ) ) as socket : for identifier , registration_id in enumerate ( registration_ids ) : _apns_send ( registration_id , alert , identifier = identifier , socket = socket , * * kwargs ) _apns_check_errors ( socket )
Sends an APNS notification to one or more registration_ids.
    The registration_ids argument needs to be a list.

    Note that if set alert should always be a string. If it is not set,
    it won't be included in the notification. You will need to pass None
    to this for silent notifications.
Sends an APNS notification to one or more registration_ids . The registration_ids argument needs to be a list .