| ¾ÆÆÇ °£´ÜÇÑ Apple Ǫ½Ã ¾Ë¸² ¼ºñ½º Á¦°ø ¾÷üÀÔ´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
¾ÆÆÇ ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- MIT/X Consortium Lic...
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- https://github.com/barumrho/
¾ÆÆÇ Å±×
¾ÆÆÇ ¼³¸í
APUSH´Â ÆÄÀ̽ãÀ¸·Î ÀÛ¼ºµÈ °£´ÜÇÑ Apple Push Notification Service Á¦°ø ¾÷üÀÔ´Ï´Ù .``pythonFrom Apush °¡Á® ¿À±â ¼ºñ½º, ¾Ë¸², error_invalid_tokentoken = 'hex-encodeed token'.decode ('hex ') service ('/ path / to / certificate) PEM ') Notification = Notification (Token, Alert ='New Notification ', Badge = 1) Services.send (¾Ë¸²) # ¾Ë¸²ÀÇ NN ¿©·¯ °¡Áö ¾Ë¸²¿¡ ´ëÇÑ : service.queue (n) service.flush () # ¿À·ù¸¦ È®ÀÎÇϽʽÿÀ ( »óÅÂ, ½Äº°ÀÚ, ÅäÅ«) in service.errors : IF »óÅ == error_invalid_token : Á¦°Å (ÅäÅ«) # ¹«È¿ ÅäÅ«ÀÇ Çǵå¹é ¼ºñ½º¸¦ È®ÀÎÇÕ´Ï´Ù. feedbacks : »èÁ¦ (ÅäÅ«)``ȨÆäÀÌÁö
¾ÆÆÇ °ü·Ã ¼ÒÇÁÆ®¿þ¾î