Not working without Internet Connection

Issue #69 closed
Ghislain Hachey created an issue

Notice this during one of my daily power brownouts. Application does not work at all without Internet. Fix and provide a user friendly message to users in places where Internet is needed (e.g. maps). no-internet-error.PNG

Comments (8)

  1. Brian Lewis repo owner

    Yep - spot on, its google maps that breaks this. And in particular, the google map angular directive we use fails if google maps is not available, and therefore we can't create the main module which is a dependency on that.

    In test\stubs there a little file that defines the interface for google maps - this is loaded in some test pages in lieu of loading google maps - and it allows things to load and work (except mapping of course).

    One possiblility would be to load code like this, then allow google maps to load over it, or if it can't the http fail will not stop the application - becuase we still have a window.google.

  2. Ghislain Hachey reporter

    Is ngMap used? I see the script is loaded but I don't see a single call to NgMap as in the ngMap docs. Maybe you use gmaps.js directly? Because ngMap recommends simply using map-lazy-load to address the no Internet problem.

  3. Ghislain Hachey reporter

    Can this issue be addressed with the work on remote/local downloading of resources?

  4. Brian Lewis repo owner

    We have been using quite an old version of ng-map, and the directive has b=even changed name (from map to ng-map) since this version 1.1.8 . So I think first step is to pull in the current version, then try the lazy loader.

  5. Log in to comment