ios - Apple Push - didReceiveIncomingPushWithPayload not called - instead error: Failed sending message to client -


i have app uses pushkit (voip push). of time pushes through. when there lot of traffic, pushes don't through app. in state can somehow reproduce error.

i used extended logging here: https://developer.apple.com/library/ios/technotes/tn2265/_index.html

and found examine logging: http://iosdevelopertips.com/core-services/debug-failed-push-messages-by-logging-apsd-process.html

still, got 2 different cases, don't further: - in apsd-log get

received message enabled topic ... 

and in app didreceiveincomingpushwithpayload not called. produce log entry right @ start of function , nothing special prevent function finishing. - in apsd-log get

stream error occurred ... 

but not find other error messages, why error occurs. port seems ok

after restarting app pushes through again.

edit:

the relevant error in log file seems be:

apsd[82]: failed sending message client: com.apple.telephonyutilities.callservicesdaemon.voip.push.development 

there seems 2 types of cases: in cases, reproducable large traffic, reregistering pushkit seems help.

in other cases, occur random, not. restarting app not here either. helps far, restarting iphone.

edit:

i still struggling problem. in cases memory warning before push seems fail. in other cases xpc communication warning this:

springboard[43] <warning>: communications error: <os_xpc_error: <error: 0x3b7ef614> { count = 1, contents =     "xpcerrordescription" => <string: 0x3b7ef86c> { length = 22, contents = "connection interrupted" } }> 

in cases none of above happens, push still not work.

edit: in developer archive found interesting thread, still no answer: https://devforums.apple.com/thread/257354?start=50&tstart=0

does know if there connection between xpc , push? , there way detect xpc error in code?


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -