Code Monkey home page Code Monkey logo

Comments (7)

rwbutler avatar rwbutler commented on May 20, 2024

Could you provide a little more information to help diagnose the problem, could I ask:

  • Are you experiencing this on the simulator or a physical device?
  • How are you simulating packet loss?

Thanks in advance.

from connectivity.

billionssg avatar billionssg commented on May 20, 2024
  1. I am experiencing this on physical device

  2. I am simulating my packet loss by using Network Link Conditioner. Here is the screenshot:
    IMG_0016

thx for reply

from connectivity.

rwbutler avatar rwbutler commented on May 20, 2024

Thanks for the info - I'll investigate. One more question, are you using the default settings?

from connectivity.

billionssg avatar billionssg commented on May 20, 2024

yes, I am using default settings. I have tried with 4 iPads and all of them are affected

from connectivity.

billionssg avatar billionssg commented on May 20, 2024

hi @rwbutler,

is there any update?

for your additional information I am using connectivity.isPollingEnabled = true

from connectivity.

rwbutler avatar rwbutler commented on May 20, 2024

I tried to replicate your experiment this morning using an iPad running the example app that comes with the library and enabling polling. If I use the Network Link Conditioner to simulate 100% packet loss for half an hour then switch to 3G simulation the example app does detect the availability of Internet access. Could I ask are you using example app for your experiment? If you are using your own implementation, then the first thing I'd suggest is ensuring that the Connectivity object in your app is not being released over the period of time that you are testing. It would also be interesting to see whether if you repeat your experiment using the sample app whether you still experience the issue (if you attempt this you will need to add a line of code to enable polling).

from connectivity.

rwbutler avatar rwbutler commented on May 20, 2024

I was curious to know whether you managed to take a look to see whether the reference to the Connectivity object was being released at any point over the duration of your test? I'm going to close this issue for now but if you make any further progress with this, add a comment and we'll re-open this and investigate further.

from connectivity.

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.