mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Adding error handling for APNS.
This commit is contained in:
parent
262d67abf9
commit
f106834900
1 changed files with 5 additions and 0 deletions
|
@ -237,6 +237,11 @@ class MUserFeedNotification(mongo.Document):
|
|||
image_url = story['image_urls'][0]
|
||||
# print image_url
|
||||
|
||||
def response_listener(error_response):
|
||||
logging.user(user, "~FRAPNS client get error-response: " + str(error_response))
|
||||
|
||||
apns.gateway_server.register_response_listener(response_listener)
|
||||
|
||||
for token in tokens.ios_tokens:
|
||||
logging.user(user, '~BMStory notification by iOS: ~FY~SB%s~SN~BM~FY/~SB%s' %
|
||||
(story['story_title'][:50], usersub.feed.feed_title[:50]))
|
||||
|
|
Loading…
Add table
Reference in a new issue