GithubHelp home page GithubHelp logo

Comments (5)

jakecraige avatar jakecraige commented on August 24, 2024

Wow. phonegap serve is awesome, I had not heard of it before so thanks for that info. I just tested it out and it works great.

Here's how I got it working:

  1. cd into the cordova/ folder and run mkdir .cordova this is how phonegap checks it's a cordova project source
  2. run phonegap serve within the cordova/ folder

Let me know if you have any trouble getting it to work

from ember-cli-cordova.

jakecraige avatar jakecraige commented on August 24, 2024

@kibiz0r As an update to this, you can actually use the PhoneGap developer app with ember-cli, but without using phonegap's serve command.

The way this works is that their app simply set's the location.href to the url phonegap serve serves up that page and polls that server for changes. Since ember-cli run's it's own server and injects livereload this isn't necessary. You can simply set the app's location.href to your local ember-cli app. Unfortunately due to the way it sets up it's polling you can't do this with their app straight out of the box. I have a fork I'll be working on that allows this though found here To use it you'll need to download it and run it locally and then enter the URL of your ember app. Currently the plugins will not work unless you copy them from (on iOS) cordova/platforms/ios/plugins and cordova/platforms/ios/cordova* to the public directory

That being said, it does work with the serve command with a few steps, so I'll close this out. We can definitely continue discussion here though

from ember-cli-cordova.

kibiz0r avatar kibiz0r commented on August 24, 2024

Awesome! Thanks for the quick reply, I'm really impressed by this project. If I figure out something to contribute, I'll be sure to submit a PR. 😄

from ember-cli-cordova.

Globegitter avatar Globegitter commented on August 24, 2024

@jakecraige @kibiz0r Just seen this and that looks very promising indeed and would be extremely useful to have proper support for that and mention it in the readme. Would have saved us quite some development time.

Just looking at your fork @jakecraige, you changed the line config.address = config.address || '127.0.0.1:3000';, so if you serve ember on port 3000 it should work as well? Or can you not just customize it via config.address? (This is the very first time I am seeing the phonegap app)

And what is the reason that the original ajax requestion with url: getAddress('/__api__/register'), does not work?

from ember-cli-cordova.

benedikt-buchert avatar benedikt-buchert commented on August 24, 2024

It does not seem to work with the new PhoneGap App Version Anymore.

Console spits out:
404 /api/appzip

And in the app it says: "Unable to download archive from the server. Please upgrade the Phonegap CLI or check your network settings."

Ember Cli Cordova: 0.0.17
Ember Cli: 0.2.5
Phonegap App Update on 19.05.2015

from ember-cli-cordova.

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.