1

Location Updates を使用するアプリがあり、バックグラウンドで 10 分以上実行できます。このアプリは、10 分未満および 10 分以上のバックグラウンドでWeb サービス Aと通信できます。私が直面している問題は、アプリが10 分以上バックグラウンドにあるときにWeb サービス Bと通信できないことです。500: 内部サーバー エラーが発生します。アプリがバックグラウンドで 10 分未満の場合、 Web サービス Bと通信できます。

: フォアグラウンドで Web サービス A & B と通信することもできます。また、フォアグラウンドかバックグラウンドかに関係なく、同じコード/ライブラリを使用して Web サービス A および B と通信することにも注意してください。

誰かがこの同じ問題を経験しましたか? デバッグのアイデアをいただけますか? サーバー管理者が利用可能になったら、受信したリクエストを分析し、ソケットが途中で閉じられていないかどうかを確認するように彼に依頼します.

4

1 に答える 1

0

I get a 500: internal server error

This hasn't really got anything to do with iOS background services. Your application is running and communicating with the server.

To debug this issue, hook your app up to a proxy like Charles, and look for the difference between requests that succeed and requests that fail.

I suspect your session might be timing out on the server. Look at your server configuration to see if your timeout parameter matches up with what you are observing.

于 2013-05-12T20:39:43.037 に答える