Traccar Client in Android background location service problem

Tasadduq Hussain7 years ago

Hi,

I don't know if anyone is experiencing the same problem. I've downloaded traccar client from Google play store. Everything works when app is active, when i push home button or open any other app, location service is not active anymore.

Does anyone know the solution for this?

Advance Thanks.

Anton Tananaev7 years ago

Most likely it means that Android kills the app because of lack of resources. You should check Android logs for more details.

Tasadduq Hussain7 years ago

Thanks,
How can i check Android logs?

My Mobile Spec are:

My Mobile: Huawei Honor 6X
EMUI Version: 5.0.1
Android version: 7.0

Regards,

Anton Tananaev7 years ago

The only way I know is through ADB.

Tasadduq Hussain7 years ago

I am not using Android Studio and not familiar of coding of traccar client.
I download client fron google play store.
Every things is working fine as i open any other app,Traccar client stop to work.

Tasadduq Hussain7 years ago

When open Traccar Client app on front in mobile,it's work fine..
As i open to see my location in Traccar Manager (traccar client work back),client stop to send location.

Here is my screenshots:

alt text

alt text

Please suggest any solution.

Advance Thanks

Anton Tananaev7 years ago

There is no way to know what's happening without logs.

Tasadduq Hussain7 years ago

Here is Log:

2017-10-03 09:01:00 DEBUG: [0AE0B369: 5055 < 61.5.139.60] HEX: 474554202f3f69643d3731393633392674696d657374616d703d31353036393134373231266c61743d33312e3437303136363331266c6f6e3d37342e34333937343933392673706565643d302e302662656172696e673d302e3026616c7469747564653d3138322e3026626174743d36312e3020485454502f312e310d0a557365722d4167656e743a2044616c76696b2f322e312e3020284c696e75783b20553b20416e64726f696420362e302e313b207669766f2031363036204275696c642f4d4d4232394d290d0a486f73743a203230322e3134322e3138342e3230323a353035350d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a4163636570742d456e636f64696e673a20677a69700d0a0d0a
2017-10-03 09:01:00  WARN: Unknown device - 719639 (61.5.139.60)
2017-10-03 09:01:00 DEBUG: [0AE0B369: 5055 > 61.5.139.60] HEX: 485454502f312e31203430302042616420526571756573740d0a436f6e74656e742d4c656e6774683a20300d0a0d0a
2017-10-03 09:01:00 DEBUG: [0AE0B369: 5055 < 61.5.139.60] HEX: 474554202f3f69643d3731393633392674696d657374616d703d31353036393134373231266c61743d33312e3437303136363331266c6f6e3d37342e34333937343933392673706565643d302e302662656172696e673d302e3026616c7469747564653d3138322e3026626174743d36312e3020485454502f312e310d0a557365722d4167656e743a2044616c76696b2f322e312e3020284c696e75783b20553b20416e64726f696420362e302e313b207669766f2031363036204275696c642f4d4d4232394d290d0a486f73743a203230322e3134322e3138342e3230323a353035350d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a4163636570742d456e636f64696e673a20677a69700d0a0d0a
2017-10-03 09:01:00  WARN: Unknown device - 719639 (61.5.139.60)
2017-10-03 09:01:00 DEBUG: [0AE0B369: 5055 > 61.5.139.60] HEX: 485454502f312e31203430302042616420526571756573740d0a436f6e74656e742d4c656e6774683a20300d0a0d0a
2017-10-03 09:01:00 DEBUG: [0AE0B369: 5055 < 61.5.139.60] HEX: 474554202f3f69643d3731393633392674696d657374616d703d31353036393134373231266c61743d33312e3437303136363331266c6f6e3d37342e34333937343933392673706565643d302e302662656172696e673d302e3026616c7469747564653d3138322e3026626174743d36312e3020485454502f312e310d0a557365722d4167656e743a2044616c76696b2f322e312e3020284c696e75783b20553b20416e64726f696420362e302e313b207669766f2031363036204275696c642f4d4d4232394d290d0a486f73743a203230322e3134322e3138342e3230323a353035350d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a4163636570742d456e636f64696e673a20677a69700d0a0d0a
2017-10-03 09:01:00  WARN: Unknown device - 719639 (61.5.139.60)
2017-10-03 09:01:00 DEBUG: [0AE0B369: 5055 > 61.5.139.60] HEX: 485454502f312e31203430302042616420526571756573740d0a436f6e74656e742d4c656e6774683a20300d0a0d0a
2017-10-03 09:01:00 DEBUG: [0AE0B369: 5055 < 61.5.139.60] HEX: 474554202f3f69643d3731393633392674696d657374616d703d31353036393134373231266c61743d33312e3437303136363331266c6f6e3d37342e34333937343933392673706565643d302e302662656172696e673d302e3026616c7469747564653d3138322e3026626174743d36312e3020485454502f312e310d0a557365722d4167656e743a2044616c76696b2f322e312e3020284c696e75783b20553b20416e64726f696420362e302e313b207669766f2031363036204275696c642f4d4d4232394d290d0a486f73743a203230322e3134322e3138342e3230323a353035350d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a4163636570742d456e636f64696e673a20677a69700d0a0d0a
2017-10-03 09:01:00  WARN: Unknown device - 719639 (61.5.139.60)
2017-10-03 09:01:00 DEBUG: [0AE0B369: 5055 > 61.5.139.60] HEX: 485454502f312e31203430302042616420526571756573740d0a436f6e74656e742d4c656e6774683a20300d0a0d0a
2017-10-03 09:01:00 DEBUG: [0AE0B369: 5055 < 61.5.139.60] HEX: 474554202f3f69643d3731393633392674696d657374616d703d31353036393134373231266c61743d33312e3437303136363331266c6f6e3d37342e34333937343933392673706565643d302e302662656172696e673d302e3026616c7469747564653d3138322e3026626174743d36312e3020485454502f312e310d0a557365722d4167656e743a2044616c76696b2f322e312e3020284c696e75783b20553b20416e64726f696420362e302e313b207669766f2031363036204275696c642f4d4d4232394d290d0a486f73743a203230322e3134322e3138342e3230323a353035350d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a4163636570742d456e636f64696e673a20677a69700d0a0d0a
2017-10-03 09:01:00  WARN: Unknown device - 719639 (61.5.139.60)
2017-10-03 09:01:00 DEBUG: [0AE0B369: 5055 > 61.5.139.60] HEX: 485454502f312e31203430302042616420526571756573740d0a436f6e74656e742d4c656e6774683a20300d0a0d0a
2017-10-03 09:01:30 DEBUG: [0AE0B369: 5055 < 61.5.139.60] HEX: 474554202f3f69643d3731393633392674696d657374616d703d31353036393134373231266c61743d33312e3437303136363331266c6f6e3d37342e34333937343933392673706565643d302e302662656172696e673d302e3026616c7469747564653d3138322e3026626174743d36312e3020485454502f312e310d0a557365722d4167656e743a2044616c76696b2f322e312e3020284c696e75783b20553b20416e64726f696420362e302e313b207669766f2031363036204275696c642f4d4d4232394d290d0a486f73743a203230322e3134322e3138342e3230323a353035350d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a4163636570742d456e636f64696e673a20677a69700d0a0d0a
2017-10-03 09:01:30  WARN: Unknown device - 719639 (61.5.139.60)
2017-10-03 09:01:30 DEBUG: [0AE0B369: 5055 > 61.5.139.60] HEX: 485454502f312e31203430302042616420526571756573740d0a436f6e74656e742d4c656e6774683a20300d0a0d0a
2017-10-03 09:01:30 DEBUG: [0AE0B369: 5055 < 61.5.139.60] HEX: 474554202f3f69643d3731393633392674696d657374616d703d31353036393134373231266c61743d33312e3437303136363331266c6f6e3d37342e34333937343933392673706565643d302e302662656172696e673d302e3026616c7469747564653d3138322e3026626174743d36312e3020485454502f312e310d0a557365722d4167656e743a2044616c76696b2f322e312e3020284c696e75783b20553b20416e64726f696420362e302e313b207669766f2031363036204275696c642f4d4d4232394d290d0a486f73743a203230322e3134322e3138342e3230323a353035350d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a4163636570742d456e636f64696e673a20677a69700d0a0d0a
2017-10-03 09:01:30  WARN: Unknown device - 719639 (61.5.139.60)
2017-10-03 09:01:30 DEBUG: [0AE0B369: 5055 > 61.5.139.60] HEX: 485454502f312e31203430302042616420526571756573740d0a436f6e74656e742d4c656e6774683a20300d0a0d0a
2017-10-03 09:01:30 DEBUG: [0AE0B369: 5055 < 61.5.139.60] HEX: 474554202f3f69643d3731393633392674696d657374616d703d31353036393134373231266c61743d33312e3437303136363331266c6f6e3d37342e34333937343933392673706565643d302e302662656172696e673d302e3026616c7469747564653d3138322e3026626174743d36312e3020485454502f312e310d0a557365722d4167656e743a2044616c76696b2f322e312e3020284c696e75783b20553b20416e64726f696420362e302e313b207669766f2031363036204275696c642f4d4d4232394d290d0a486f73743a203230322e3134322e3138342e3230323a353035350d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a4163636570742d456e636f64696e673a20677a69700d0a0d0a
2017-10-03 09:01:30  WARN: Unknown device - 719639 (61.5.139.60)
2017-10-03 09:01:30 DEBUG: [0AE0B369: 5055 > 61.5.139.60] HEX: 485454502f312e31203430302042616420526571756573740d0a436f6e74656e742d4c656e6774683a20300d0a0d0a
2017-10-03 09:01:30 DEBUG: [0AE0B369: 5055 < 61.5.139.60] HEX: 474554202f3f69643d3731393633392674696d657374616d703d31353036393134373231266c61743d33312e3437303136363331266c6f6e3d37342e34333937343933392673706565643d302e302662656172696e673d302e3026616c7469747564653d3138322e3026626174743d36312e3020485454502f312e310d0a557365722d4167656e743a2044616c76696b2f322e312e3020284c696e75783b20553b20416e64726f696420362e302e313b207669766f2031363036204275696c642f4d4d4232394d290d0a486f73743a203230322e3134322e3138342e3230323a353035350d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a4163636570742d456e636f64696e673a20677a69700d0a0d0a
2017-10-03 09:01:30  WARN: Unknown device - 719639 (61.5.139.60)
2017-10-03 09:01:30 DEBUG: [0AE0B369: 5055 > 61.5.139.60] HEX: 485454502f312e31203430302042616420526571756573740d0a436f6e74656e742d4c656e6774683a20300d0a0d0a
2017-10-03 09:01:30 DEBUG: [0AE0B369: 5055 < 61.5.139.60] HEX: 474554202f3f69643d3731393633392674696d657374616d703d31353036393134373231266c61743d33312e3437303136363331266c6f6e3d37342e34333937343933392673706565643d302e302662656172696e673d302e3026616c7469747564653d3138322e3026626174743d36312e3020485454502f312e310d0a557365722d4167656e743a2044616c76696b2f322e312e3020284c696e75783b20553b20416e64726f696420362e302e313b207669766f2031363036204275696c642f4d4d4232394d290d0a486f73743a203230322e3134322e3138342e3230323a353035350d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a4163636570742d456e636f64696e673a20677a69700d0a0d0a
2017-10-03 09:01:30  WARN: Unknown device - 719639 (61.5.139.60)
2017-10-03 09:01:30 DEBUG: [0AE0B369: 5055 > 61.5.139.60] HEX: 485454502f312e31203430302042616420526571756573740d0a436f6e74656e742d4c656e6774683a20300d0a0d0a
Anton Tananaev7 years ago

You haven't registered your device - 719639.

Tasadduq Hussain7 years ago

Thanks..
How can I registered my device..

Regards

Anton Tananaev7 years ago

You click "plus" button in the devices list and add your device there with correct device id.