def __init__(self): """ Create listener for Iphone push notification """ XplPlugin.__init__(self, name='ipushnot') # Create logger self.log.debug("Listener for Iphone push notification created") # Create IPushNotification object self.ipn_notification_manager = IPushNotification(self.log) # Create listeners Listener(self.ipn_notification_cb, self.myxpl, { 'schema': 'sendmsg.push', 'xpltype': 'xpl-cmnd' }) self.enable_hbeat()