The application does not work when on 3G.On works well

I have an application that communicates with a web server through REST. It works fine on the phone when connected via WiFi, but does not work correctly when on 3G.

Not everything stops working. I can still use some functions, but for some reason some calls to rest return "" (empty answer) very quickly. Once again, when I'm on WiFi, everything works fine.

Just to clarify: 1. I have a data plan :) 2. The server to which I connect is accessible from the Internet.

Any thoughts?

Thanks Ralph

+3
source share
3 answers

. , APN -APN. APN gprs mms, , APN . Google -APN .

-APN ! dea .

: idea_internet apn: apn :

, . . S3, .

! bonbets

+3

, , , .

HTTP , , .

, , . . Content-Length. -, "" ( ).

, , . GET, PUT DELETE . (PUT , , DELETE "" , ).

POST - . , , POST, . , , .

3G . , .

0

Just change the access point names from "GPRS / WAP" to "Internet" ... This will work fine. Now I can access all applications with 3G.

0
source

Source: https://habr.com/ru/post/1759957/


All Articles