Giter Club home page Giter Club logo

cordova-connection-settings's People

Contributors

andrew-tan avatar mrozuru avatar shankari avatar

Watchers

 avatar  avatar  avatar

cordova-connection-settings's Issues

Few more cleanup issues

Few more cleanup issues for #9

  • move the "set settings" code to a separate module
  • set a client field in the profile when the user switches to a different client (at least by URL)
  • reflect the results of the user prompt back to the diary (will be tracked in a different bug)

Ensure that connection settings can be changed when the UI channel is changed

Now that the connection settings can be saved through JSON, we want them to be included as part of the UI channels so that we can have different projects use different hosts even if they only choose to use custom channels on the same native app. We can do this by including custom JSON files into the deployed channel.

Now that we can connect successfully to localhost, we can see whether this really works.

Support connecting to other servers

Almost every project so far has wanted to run its own server: the cci-berkeley project, the open sidewalks project and potentially the Brazil class server project. The only project that wants to reuse our server is the Santa Rosa commute survey project.

And several of these want to use ionic deploy to switch instead of deploying their own apps. So we need to make the connection settings configurable at runtime, instead of having them hardcoded in the native code.

Sensing settings reset when switching to a new channel

I ran into this issue while testing #9.
Both android4 and iphone4 eventually went to continuous (non-duty cycled) data collection with no further user interaction.

Note from #9 (comment)
that the other settings are put into the database on plugin initialize.

The problem is that when we switch to a different channel while clearing out the usercache, the other settings are cleared too. So if we don't force-kill the app, which we typically don't, there is no entry in the database. And then when we sync, if there is an overridden entry on the server, then we end up with an overridden entry on the phone.

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.