Coder Social home page Coder Social logo

Comments (9)

tananaev avatar tananaev commented on September 21, 2024

Have you tried enabling it?

from traccar-client-android.

bernamaxim avatar bernamaxim commented on September 21, 2024

Yes I have. But, it cannot enable.

from traccar-client-android.

tananaev avatar tananaev commented on September 21, 2024

Looks like you're right. We need to enable it.

from traccar-client-android.

tananaev avatar tananaev commented on September 21, 2024

Wait. I just checked the documentation again and it says explicitly:

Note: Apps don't need to request the POST_NOTIFICATIONS permission in order to launch a foreground service. However, apps must include a notification when they start a foreground service, just as they do on previous versions of Android.

So it seems like it's not required.

from traccar-client-android.

tananaev avatar tananaev commented on September 21, 2024

Just to be sure I tested it and I can see that the foreground service is running:

Screenshot_20230418_173638

from traccar-client-android.

bernamaxim avatar bernamaxim commented on September 21, 2024

Screenshot_2023_0419_075329

Are you sure to use Android 13 for testing?

from traccar-client-android.

tananaev avatar tananaev commented on September 21, 2024

Yes, absolutely. I'm using Android 13 emulator

Screenshot 2023-04-18 at 5 56 31 PM

from traccar-client-android.

bernamaxim avatar bernamaxim commented on September 21, 2024

I have tested again to make sure.

I clear memory and cache on my device and reinstall Traccar.

About 25 minutes ago I run Traccar and sweep away (to make sure running in background)

For several updates it not problem until first 5 minutes.

After waiting for 20 minutes, it not update anymore.

IMG_20230419_083544

But after I opened app, it start to update again. Execute startForeground (with process: "service started" and "network online")

Screenshot_2023_0419_082025

Note:

  1. I have make sure to set allow access all the time for GPS, use accurate location and turn off battery optimization.
  2. I have tested for 2 device with Android OS 13.

from traccar-client-android.

tananaev avatar tananaev commented on September 21, 2024

What devices have you tested? Have you ready about your devices here?

from traccar-client-android.

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.