Esempio n. 1
0
 def send(self, title, message, subtitle=None):
     try:
         long_message_preview = message
         for cred in self.credentials:
             notifications.send_async(cred, message, title=title, subtitle=subtitle, icon_url="http://antoinemercadal.fr/logo_archipel.png", long_message_preview=long_message_preview)
     except:
         self.entity.log.warning("cannot send iPhone notification: %s" % ex)
Esempio n. 2
0
 def send(self, title, message, subtitle=None):
     """
     Send the notification.
     @type title: string
     @param title: the title of the notification
     @type message: string
     @param message: the content of the message
     """
     try:
         long_message_preview = message
         for cred in self.credentials:
             notifications.send_async(cred, message, title=title, subtitle=subtitle, icon_url="http://antoinemercadal.fr/logo_archipel.png", long_message_preview=long_message_preview)
     except Exception as ex:
         self.entity.log.warning("Cannot send iPhone notification: %s" % ex)
Esempio n. 3
0
 def send(self, title, message, subtitle=None):
     long_message_preview = message
     notifications.send_async(self.credentials, message, title=title, subtitle=subtitle, icon_url="http://antoinemercadal.fr/logo_archipel.png", long_message_preview=long_message_preview)