traccar / traccar-client-android

Traccar Client for Android
https://www.traccar.org/client
Apache License 2.0
643 stars 715 forks source link

Samsung galaxy note 2 cannot send location update to server #119

Open berry2012 opened 9 years ago

berry2012 commented 9 years ago

I have installed and setup traccar on my windows os (window server 2012) and also setup traccar client on my android device samsung galaxy Note 2. The mobile device connects to the server but no record so far since yesterday. I checked the log on the mobile device and it keeps giving "send failed"

Kindly assist.

tananaev commented 9 years ago

"Send failed" message indicates that there was some network issue. Are you using Wi-Fi or mobile data connection?

berry2012 commented 9 years ago

Am using wifi.

Sent from Yahoo Mail on Android

tananaev commented 9 years ago

I think there is some network issue. You can try to get Android logs for more details on the error.

berry2012 commented 9 years ago

still saying send failed. I have tried both wifi and network connection.

tananaev commented 9 years ago

What port are you using?

berry2012 commented 9 years ago

8082 I have opened it on the firewall as well.

tananaev commented 9 years ago

That explains everything. You need to use port 5005.

berry2012 commented 9 years ago

But after installation, my local host points to http://localhost:8082/Does this matter? Olawale Olaleye

berry2012 commented 9 years ago

Hello,

Please see log attached.

The port is 5005 and IP is my public IP

Sent from Yahoo Mail on Android

berry2012 commented 9 years ago

Please what is the username and password for the http://demo.traccar.org/

tananaev commented 9 years ago

You cannot attach files to GitHub thread.

As for demo, you need to register a your own user.

ghost commented 9 years ago

Not sure if this helps but. My experience has been that it will not send data if your are using WiFi. The iPhone app has the same issue. If I put the device in Airplane mode and then connect to my home WiFi the app stops sending data. If I turn Airplane mode off then "location update" begins appearing in the status window.

tananaev commented 9 years ago

I do all the testing on real devices in Wi-Fi mode and it works perfectly.

ghost commented 9 years ago

I think you Traccar application is a great product so my comments are not meant to be critical. I continued testing with my iPhone with airplane mode ON (meaning no 4G service) with WiFi ON (I confirmed WiFi was ON by surfing first) and found that the App is working, BUT it is sending Location updates every 5 Minutes even though I have the frequency set to 15 seconds. If I turn Airplane mode OFF and then stop/start the app it begins sending Location updates every 15 seconds. Lastly, I downloaded the Android app on to my Samsung Tab Pro this morning, it is WiFi only, and it seems to connect to the server but never sends a Location update.

tananaev commented 9 years ago

There might be some limitations on iOS in Airplane mode. Please create an issue for iOS project: https://github.com/tananaev/traccar-client-ios

As for Android app, what do you see on the status screen?