Esempio n. 1
0
	def queueNotifications(self, tokens, alert, sound):
		self.__resetNotifs()

		for token in tokens:
			if len(token) > 0:
				badge = deviceHandler.incrementBadge(token)
				notif = self.__makeNotification(self.__currentID, token, alert, badge, sound, None)
				self.__notifBinaryDict[self.__currentID] = notif
				self.__currentID += 1

		self.__sendNotifications()