Giter Club home page Giter Club logo

Comments (2)

ocram avatar ocram commented on May 26, 2024

Thanks for your question and your appreciation :)

So if you're subscribing in onStart() and unsubscribing in onStop(), you're basically toggling the subscription status whenever the app is opened/closed (e.g. via the "Home" key), right?

Can you check if this is working? Are there any things happening when the app is "minimized" and then "maximized" again?

Are you using the unsubscribe method correctly? What did you do? Keep the ID returned from the subscribe method and use that ID to unsubscribe again, later?

Can you pass an UnsubscribeListener as the second parameter, as shown in the examples? This way you should be able to see if unsubscribing works correctly or fails with an error message.

Apart from that, what about logging the user out? Does that help? You were talking about the second time you log in, so did you properly log out the user before?

If neither of those suggestions work, I'm afraid it might be a question concerning the Meteor project itself (and its DDP protocol sub-project). This library does not cache any resources, so far. So if Meteor is not sending the resources again after you've properly unsubscribed and/or logged out, you may get better help there.

from android-ddp.

LeNiglo avatar LeNiglo commented on May 26, 2024

Thanks for you answer, I will look at it ASAP and give you a feedback ! :)

from android-ddp.

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.