GithubHelp home page GithubHelp logo

Comments (4)

pwittchen avatar pwittchen commented on July 28, 2024

Thank you for reporting that issue. This library is not designed to handle situations mentioned by you. UNKOWN status should be set in case if no status was set already. I think, it shouldn't occur in another situations. You can optionally test your case with OFFLINE status.

I'm not sure how to handle your case with mobile data loss and also how to test it properly. I'm not sure if I can reproduce such situation e.g. in a unit test. Code snippet provided by you is quite "hacky" and it uses reflection. I would rather avoid that, because it makes apps slower and is possible source of bugs and Runtime Exceptions.

If you have any idea how to solve this problem in a right way or have any ideas how to test it, your comments (and comments of anyone) are welcome.

I'll read more about this problem. After gathering more information, it will be easier to solve it.

from reactivenetwork.

pwittchen avatar pwittchen commented on July 28, 2024

I think, the right way to solve your problem could be usage of TelephonyManager and PhoneStateListener. It may be an idea for a new project, because this library could become to heavy if we throw everything in it.

from reactivenetwork.

JosiasSena avatar JosiasSena commented on July 28, 2024

Thanks for the quick response!

Sounds good man, just thought it would be worth mentioning it.

Thanks anyways, ill keep on looking into it a bit more and finding the best way to do this in combination with your library.

from reactivenetwork.

pwittchen avatar pwittchen commented on July 28, 2024

As we discussed it in #282, this issue should be resolved within a separate project with different responsibilities. I have plans to create another library to address this issue, but I need to find a time for that. This issue can be closed for now.

from reactivenetwork.

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.