Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
249 views
in Technique[技术] by (71.8m points)

ios - n-th Apple push notification not sent if (n-1)-th has wrong token

I am having some problems with apn, using simple format. This is the scenario:

1) I have a persistent connection to apn push service.

2) I send in a row 10 messages, where for example the 5th can have wrong device token

3) All messages from 1 to 4 are sent correctly

4) I receive a message from the socket of successful sending for all messages (included the ones from 5th to 10th).

5) message from 6th to 10th are not pushed to users.

6) after a while connection is closed by apn server

am i doing something wrong or is this the common behavior?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

What are you using to send push notification? Can you share your code? I have been using APNS-Sharp since long and it has been working absolutely fine. If 5th message has bad token is totally independent of next message! Make sure that you run Feedback service regularly and remove invalid tokens and the tokens doesn't want to accept your push notification. Also have a look at PushSharp.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...