Android calling API from my app very slow using cellular network - android

We have very strange issue.
We are using godaddy domain and google cloud for hosting.
We have App on Android and iOS everything seems working fine.
But Android app taking 40 second to call API. As server log showing request served in 100ms.
This happens with particular when we are on cellular data. All other websites loading fast.
Issue happen Android app + Idea cellular only.
When we hit same API URL on mobile browser it works normal. But in app it takes 40sec to 4 min to get response.
In ios app we are not facing this issue with idea cellular network.
We are unable to debug this issue.
Thanks in advance..

check if the cellular is consuming any proxy. if so disable it and try again. if the problem persists then use cloud flare or google DNS. I hope it will help you out.

Related

Android App internet access not working on AT&T network

I've created and deployed an android app on to the Google play store. Throughout the entire process of developing the app I never ran into any issues with connecting to my online database. Now that I've launched it on the play store I've started having some friends getting issues with it working. After a few days of banging my head against the wall I figured out that they are all on AT&T network. If they connect to a network that isn't AT&T the app works with no issues. Basically it is just blocking the app from using the internet to connect to my database. Has anyone heard of an issue like this? Or have any solutions to get it working correctly on AT&T?
Try accessing your database/server in a web browser in that AT& T network. It may not be blocking your app, but may be issue in accessing your server via AT&T network, which may be caused because of many reasons like some offensive words etc(just a possibility only)

Unable to understand the concept of server for chat in android

Since I am new to android I am confused with the concept of server for android app. After going through different tutorials I landed up at openfire server. I have done with setting up the server on my computer. If I turn off my computer the server will be closed and app will stop working I guess. How the real time chatting app work. How to get a real time server which will be available to the user 24/7. Please help me get rid off it.
Seems like you have setup server on your local machine. This requires your system to be turned on always. Try hosting it in a third party environment. Hope this helps!

Android login while working with mobile phone but working fine in emulator

I developed android app using this website.
http://www.coderzheaven.com/2012/04/22/create-simple-login-form-php-android-connect-php-android/
but i am able to login in emulator but when i am trying in my mobile it is not showing anythings. how to over come that.
I had the same problem. The problem might be due to Certificate signing at the time of connection or proxy settings or maybe IP or maybe something like KNOX agent that might stop connection. I started using jdbc and it worked for me. It is easier than php. This might help you JDBC connection in Android.

Listen to Android app's traffic using Fiddler

I'm working on an Android app on a non-rooted phone. It uses the network to download some data from a server using HTTP. I would like to debug the stream of those information, so I installed Fiddler and followed some tutorials like:
http://docs.telerik.com/fiddler/configure-fiddler/tasks/ConfigureForAndroid
http://blogs.msdn.com/b/jpsanders/archive/2013/04/03/configuring-fiddler-to-be-a-proxy-for-android-emulators.aspx
The problem is that this methods work only if the data is sent and received by the Android Browser, while apps are totally ignored. How can I proceed?
Well... I managed to see my app's traffic by using an emulator, not a real phone. The guide from MSDN (second link) is the most appropriate for this task.

How to capture http request by using android app

I am developing an android app which will track all the http and https request of my phone and display that request as an result.
So please anyone suggest me how to do that using android app.
Funny I just ran across this a couple of minutes before reading your question. They are talking about an app that does exactly the same thing. From the text of this post I can assume that this is no small feat. They have taken the approach of setting up a virtual enviroment to capture all http requests. This requires rooting your phone. I would expect if you wanted to check a particular app you could load the app in an emulator and log the emulator's requests.

Categories

Resources