Comments (9)
We don't officially support WearOS currently.
What is the exception though?
from traccar.
Hi, Thanks for the reply!
I'm a runner, I like to run. I bought this watch for the main purpose of listening Audible while I run. Also, listening to music Radio from the LTE. And I can also call and text in case I need help during a run.
There is some other software that can do that, but I currently use Traccar and I like it.
I have Traccar on multiple devices and I thought that it would be nice to have it work on a watch for the purpose of letting know the family/friends where I am while I'm out there in case of help or meet somewhere.
The software org.traccar.client really working on WearOS right now, it's just the popup of battery optimization that make the app to close because of not responding.
The ID is also set on the Traccar server and I receive coordinations. As soon as I put the server link address and I click on the button to start the tracking, I receive data in Traccar server but not for long because of the popup msg I'm talking about that closes the app.
Thanks @tananaev
from traccar.
Are you able to provide the exception with stack trace?
from traccar.
Hi @tananaev
Not sure if it is what you were asking for... but I have a logcat file which I get the crash message in txt file from traccar:
At startup of the watch:
--------- beginning of crash
11-30 07:33:03.733 3655 3655 E AndroidRuntime: FATAL EXCEPTION: main
11-30 07:33:03.733 3655 3655 E AndroidRuntime: Process: org.traccar.client, PID: 3655
11-30 07:33:03.733 3655 3655 E AndroidRuntime: java.lang.RuntimeException: Unable to start receiver org.traccar.client.StatusWidget: java.lang.NullPointerException: Attempt to invoke virtual method 'int[] android.appwidget.AppWidgetManager.getAppWidgetIds(android.content.ComponentName)' on a null object reference
11-30 07:33:03.733 3655 3655 E AndroidRuntime: at android.app.ActivityThread.handleReceiver(ActivityThread.java:4364)
11-30 07:33:03.733 3655 3655 E AndroidRuntime: at android.app.ActivityThread.-$$Nest$mhandleReceiver(Unknown Source:0)
11-30 07:33:03.733 3655 3655 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2173)
11-30 07:33:03.733 3655 3655 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
11-30 07:33:03.733 3655 3655 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:201)
11-30 07:33:03.733 3655 3655 E AndroidRuntime: at android.os.Looper.loop(Looper.java:288)
11-30 07:33:03.733 3655 3655 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7962)
11-30 07:33:03.733 3655 3655 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
11-30 07:33:03.733 3655 3655 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:550)
11-30 07:33:03.733 3655 3655 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:952)
11-30 07:33:03.733 3655 3655 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'int[] android.appwidget.AppWidgetManager.getAppWidgetIds(android.content.ComponentName)' on a null object reference
11-30 07:33:03.733 3655 3655 E AndroidRuntime: at org.traccar.client.StatusWidget.updateWidgets(StatusWidget.kt:47)
11-30 07:33:03.733 3655 3655 E AndroidRuntime: at org.traccar.client.StatusWidget.onReceive(StatusWidget.kt:32)
11-30 07:33:03.733 3655 3655 E AndroidRuntime: at android.app.ActivityThread.handleReceiver(ActivityThread.java:4355)
11-30 07:33:03.733 3655 3655 E AndroidRuntime: ... 9 more
I have for 18mb of data in that txt file. Any specific thing you want to me to paste to you?
Thanks again for replying and your interest.
from traccar.
from traccar.
Here is the log from .\adb -s 192.168.1.159:42115 logcat -d | findstr "org.traccar.client"
from traccar.
Actually looks like you're asking in the wrong repository.
And also the error seems to be related to the widget and has nothing to do with battery optimization. It's related to this: traccar/traccar-client-android#431.
from traccar.
The link you are giving to me, is it th solution? Is it something I can do to make it work or not?
Sorry, not so familiar with Android stuff, but I know Python coding stuff though :)
Thanks,
from traccar.
No, it's probably the source of the problem.
from traccar.
Related Issues (20)
- Feature request: Notification channels restricted per user or per group or both.
- ER diagram not found in the documentation ? HOT 1
- Feature request: Private and business trips HOT 1
- Car dissappeared from the map after updating from old version of traccar to latest version (v5.12) HOT 2
- Неверное отображение поездок в отчетах. HOT 1
- Feature request: include device IMEI in position forwarding HOT 5
- Feature request: Styling for point markers.
- Get Error in broadcast with redis
- Allow for user tokens to be invalidated HOT 9
- Ability to disable settings/token change interface when user logs in with token (or generally)
- GUI failed login requests not being logged HOT 1
- api/reports/events does not return events even though they are present in tc_events table HOT 4
- VPS deployment on Vultr HOT 1
- No login attempt log HOT 6
- Different list of trips depending period HOT 1
- Onboard Suntech ST310U Device HOT 1
- Use LBS positioning from the Teltonika TAT140 HOT 1
- Add possibility for read only custom user attributes HOT 1
- Notification not deactivated HOT 1
- Info about Mozilla Geocoding API HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from traccar.