import json
import logging
import argparse

import emission.net.ext_service.push.notify_usage as pnu

if __name__ == '__main__':
    logging.basicConfig(level=logging.DEBUG)
    parser = argparse.ArgumentParser(prog="silent_ios_push")
    parser.add_argument("interval",
        help="specify the sync interval that the phones have subscribed to",
        type=int)

    args = parser.parse_args()
    logging.debug("About to send notification to phones with interval %d" % args.interval)
    response = pnu.send_silent_notification_to_ios_with_interval(args.interval, dev=True)
    pnu.display_response(response)

import json
import logging
import argparse

import emission.net.ext_service.push.notify_usage as pnu

if __name__ == '__main__':
    logging.basicConfig(level=logging.DEBUG)
    parser = argparse.ArgumentParser(prog="silent_ios_push")
    parser.add_argument("interval",
        help="specify the sync interval that the phones have subscribed to",
        type=int)
    parser.add_argument("-d", "--dev", action="store_true", default=False)

    args = parser.parse_args()
    logging.debug("About to send notification to phones with interval %d" % args.interval)
    response = pnu.send_silent_notification_to_ios_with_interval(args.interval, dev=args.dev)
    pnu.display_response(response)

Add a new dev (optional) parameter and use it
Add a new dev (optional) parameter and use it

Actually use the functionality in 78e2efd09d61c2abee95590aa637a64fa0618896
