GithubHelp home page GithubHelp logo

Comments (9)

tananaev avatar tananaev commented on September 26, 2024 1

We don't officially support WearOS currently.

What is the exception though?

from traccar.

Micboule avatar Micboule commented on September 26, 2024 1

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.

tananaev avatar tananaev commented on September 26, 2024

Are you able to provide the exception with stack trace?

from traccar.

Micboule avatar Micboule commented on September 26, 2024

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.

Micboule avatar Micboule commented on September 26, 2024

log.txt

from traccar.

Micboule avatar Micboule commented on September 26, 2024

log.txt

Here is the log from .\adb -s 192.168.1.159:42115 logcat -d | findstr "org.traccar.client"

from traccar.

tananaev avatar tananaev commented on September 26, 2024

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.

Micboule avatar Micboule commented on September 26, 2024

@tananaev

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.

tananaev avatar tananaev commented on September 26, 2024

No, it's probably the source of the problem.

from traccar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.