GithubHelp home page GithubHelp logo

Comments (2)

powysm avatar powysm commented on September 4, 2024

@rolinger did you manage to get anywhere with this.
This sounds pretty much exactly what some iOS users are reporting on our app.
The only way i can recreate similar is to be connected to a wifi point w/o internet access.

I was considering treating an ios device as disconnected on app start up until it has an online event that isn't of type unknown or none, or testing this value on a timer on startup.

from cordova-plugin-network-information.

rolinger avatar rolinger commented on September 4, 2024

@powysm - We changed many things. In fact we completely rewrote how our app initializes, greatly simplifying it and eliminating almost all outside dependencies during start up. We use google's places/autocomplete for typing in city/town names - so this loads way before onDeviceReady() fires. If the google maps api fails to load, the call back is never called, thus something must be wrong with the internet connection. The onDeviceReady() function then looks to see if the a maps global variable is to true or false (online/offline). If true, carry on, if false, pop warning message to user and then do a deeper dive into finding out why. Since we moved to this method we have no more reports of "offline" app hanging on launch:

<script async defer 
      src="https://maps.googleapis.com/maps/api/js?key=api_key&amp;libraries=places&callback=mapsCallback" type="text/javascript">
</script>  

from cordova-plugin-network-information.

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.