Git Product home page Git Product logo

Comments (9)

felipekjr avatar felipekjr commented on July 18, 2024 4

Same here! We are using this plugin in an production app and need so much this feature. Can someone send a feedback about this? Thanks

from background_locator.

itismejy avatar itismejy commented on July 18, 2024 4

Thanks for the reply!

In the callback function I just want to unregister BackgroundLocator in the callback so the app can stop tracking a user's location in the background without having them having to open it. In the example it would look something like this (finished being a boolean):

static void callback(LocationDto locationDto) async {
final SendPort send = IsolateNameServer.lookupPortByName(_isolateName);
send?.send(locationDto);
if (finished) {
IsolateNameServer.removePortNameMapping(_isolateName);
BackgroundLocator.unRegisterLocationUpdate();
}
}

from background_locator.

mehdok avatar mehdok commented on July 18, 2024

Please provide some code so I can investigate the problem;

from background_locator.

gpibarra avatar gpibarra commented on July 18, 2024

Do you want backrground process unregister self?

from background_locator.

amitkalo avatar amitkalo commented on July 18, 2024

i have the same issue, any suggestion?

from background_locator.

felipekjr avatar felipekjr commented on July 18, 2024

Do you want backrground process unregister self?

An example: When i logged in and the background process starts, so I logged out and the background process finished, that's ok. But when i restart the device, the background process starts, but user still logged out.

from background_locator.

diezep avatar diezep commented on July 18, 2024

Someone have the solution of this issue now?

from background_locator.

albertusdev avatar albertusdev commented on July 18, 2024

Hey, anyone knows a solution?
I think the solution is to register this plugin just like the documentation here: https://github.com/rekab-app/background_locator/wiki/Use-other-plugins-in-callback

But currently I'm confused on how to register this plugin since it doesn't have any registerWith implementation yet

from background_locator.

mehdok avatar mehdok commented on July 18, 2024

You can't unregister plugin in it's own callback;

from background_locator.

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.