Code Monkey home page Code Monkey logo

Comments (13)

gamestap99 avatar gamestap99 commented on August 16, 2024 2

try this link: https://dontkillmyapp.com/. I encountered this issue on Android 10 after following the link, and everything works fine.

from background_locator_fixed.

mohammedX6 avatar mohammedX6 commented on August 16, 2024

You can change wakelock time in settings, the default is 60 minutes

from background_locator_fixed.

nuno84 avatar nuno84 commented on August 16, 2024

Hi Mohammed,
Thank you for your suggestion, I will try it.
The only drawback to increase it to theoretical 'infinity' is battery consumption? Is there any other consideration that I should look for?
Thank you
Best regards

from background_locator_fixed.

nuno84 avatar nuno84 commented on August 16, 2024

I changed it to 24*60, and it still gets deactivated after a while. It is usually a bit less than 1 hour so it may not be the issue?
Any idea?
Is there any way I can get some log output that could give some clue to follow?
Thank you once again

from background_locator_fixed.

nuno84 avatar nuno84 commented on August 16, 2024

This is what I have actually. Does anyone have an idea?
I am sorry if I am being insistent but maybe this is an issue more people will have.
Thank you for any idea, even if it is 'obvious' to you.

      await BackgroundLocator.registerLocationUpdate(
        LocationCallbackHandler.callback,
        initCallback: LocationCallbackHandler.initCallback,
        initDataCallback: data,
        disposeCallback: LocationCallbackHandler.disposeCallback,
        iosSettings: const IOSSettings(
            accuracy: LocationAccuracy.NAVIGATION,
            distanceFilter: 0,
            stopWithTerminate: true),
        autoStop: false,
        androidSettings: const AndroidSettings(
            wakeLockTime: 24*60,
            accuracy: LocationAccuracy.NAVIGATION,
            interval: 10,
            distanceFilter: 20,
            client: LocationClient.google,
            androidNotificationSettings: AndroidNotificationSettings(
                notificationChannelName: 'Location tracking',
                notificationTitle: 'Tacógrafo: monitor de localização',
                notificationMsg: 'Monitorização de localização em background',
                notificationBigMsg:'Ajuda a lembrar de potenciais alterações de estado do tacógrafo.',
                notificationIconColor: Colors.grey,
                notificationTapCallback: LocationCallbackHandler.notificationCallback)))

from background_locator_fixed.

mohammedX6 avatar mohammedX6 commented on August 16, 2024

Hi, please try this library to disable battery optimizations for the app

https://pub.dev/packages/disable_battery_optimization/example

from background_locator_fixed.

nuno84 avatar nuno84 commented on August 16, 2024

Hi again,
I am really sorry but it still doesn't work.
Do you have some more shot I can try?
Is there any way to get the exit reason for these background processes somewhere on Android, like some log or similar?
Thank you very much

from background_locator_fixed.

mohammedX6 avatar mohammedX6 commented on August 16, 2024

Actually i am having the issue but it reduces when i disable battery optimizations , I don't know more about it sorry

from background_locator_fixed.

nuno84 avatar nuno84 commented on August 16, 2024

Did you notice that the issue also happened to you after my question or you always had it (or maybe didnt need it before)?
Thanks

from background_locator_fixed.

mohammedX6 avatar mohammedX6 commented on August 16, 2024

It's happens before you asking

from background_locator_fixed.

Abdulah-butt avatar Abdulah-butt commented on August 16, 2024

Has anyone found a solution for this? i am facing same issue.

from background_locator_fixed.

nuno84 avatar nuno84 commented on August 16, 2024

Has anyone found a solution for this? i am facing same issue.

No, I still would like to know.

from background_locator_fixed.

Abdulah-butt avatar Abdulah-butt commented on August 16, 2024

Ohh, I am also facing the same issue but for android>10...for android <=10 it is working fine

from background_locator_fixed.

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.