Code Monkey home page Code Monkey logo

phonegap-app-developer's Introduction

phonegap-app-developer's People

Contributors

devgeeks avatar don avatar eddyverbruggen avatar erisu avatar filmaj avatar jahoni avatar macdonst avatar mwbrooks avatar purplecabbage avatar qkdreyer avatar shazron avatar surajpindoria avatar timkim avatar yoheishimomae avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

phonegap-app-developer's Issues

Disable Web View Scroll

The app is designed to fit the device's screen.

For a better experience, we can disable the webview bounce and scroll on iOS.

Input box selection is out of focus

When selecting the address input field, the selection cursor is not correctly position and the user cannot type. To solve it, the user must select the input field again.

This might be a CSS animation bug.

Scenario: First Application

Scenario: First Application

  1. Install the PhoneGap command-line tool from npm:

    $ sudo npm install -g phonegap
    
  2. Create a PhoneGap project:

    $ phonegap create my-first-app
    $ cd my-first-app/
    
  3. Connect to the PhoneGap App:

    $ phonegap app
    [phonegap] Open the PhoneGap app on your device
    [phonegap] Select “Local Development”
    [phonegap] Address: 192.168.0.10
    [phonegap] Port: 8080
    
  4. Open the PhoneGap app.

  5. Select Local Development and enter address and port.

  6. This displays the application served from your local computer.

  7. As files change locally, the PhoneGap App can be refreshed.

Add WP8 Platform

Successfully build the WP8 platform.

Version control the platforms/wp8 directory. Add the build artifacts to .gitignore.

Add Back to Home and Reload functionality

Issue #21 deals with how to invoke the reload and back to home functionality.

This issue deals with the implementation of both the reload and back to home.

Back to home is tricky. Our homepage app is bundled at www/index.html. However, we connect to a streaming app at an arbitrary IP address. Essentially, these are two different web sites hosted on different domains.

We need a way to go back to the bundled index.html.

Options:

  1. Use the history.back(history.length); approach.

    • The downside is that it displays the cached page. This introduces rendering quirks that we would need to work around
  2. Use the FileWriter to write a bundled-app.json that stores settings such as:

    {
        'documentURI': 'file://whatever/long/url/this/is/www/index.html',
        'address': '127.0.0.1:3000'
    }
    

New skin, different fields

We want to switch from the currently implemented design (showing Login and Password fields) to a single field for IP address.

Create View to Accept IP Address

When the application opens, it should allow the user to enter an IP address. If you think a port should be customizable, then provide that input as well.

Create refresh and back plugin

The plugin should use native code to:

  • on volume down, navigate back to the homepage
  • on volume up, refresh the connected app

Ultimately, we will need to use a separate CordovaWebView to run the connected app. This will create a sandbox so that the development app cannot interfere with the PhoneGap app's source code. However, talking with Jesse and Joe, the CordovaWebView will not be trivial. So, let's start with something easier to get our feet wet and create something usable.

Error Adding InAppBrowser Plugin

Using the PhoneGap CLI, the following error is throw:

Cannot read property 'currentVersion' of null

Perhaps the latest cordova-cli is compatible?

Add Usage Analytics

@davejohnson you mentioned wanting to add some usage analytics to the app. The submission process is looking slower than expected, so we may have time to add this.

What are you thinking exactly?

Prevent Screen Shutoff

During development, especially when AutoReload is enabled, it is frustrating to have the screen lock.

We can add a small plugin to prevent the screen from turning off. However, without a valid reason, Apple has been known to reject app submissions.

Create workflow docs for app submission

So after talking to the legal guy yesterday, he made a really good suggestion about making some really easy to follow guides on how to install the desktop component of the phonegap-app and how to pair to the device. The reasoning for this is so that the app reviewer can review these docs and understand how the whole experience is supposed to work and thus make the review process easier.

This is something we will probably end up doing anyways for app.phonegap.com. If the site is ready before submission, we could probably just send that as that the tutorial.

Smart address parsing

The app should gracefully handle address formatting:

  • 10.0.0.1:3000 => http://10.0.0.1:3000
  • http://10.0.0.1:3000 => http://10.0.0.1:3000
  • https://10.0.0.1:3000 => https://10.0.0.1:3000
  • example.com:3000 => http://example.com:3000

Refactor Configuration Storage to FileSystem

We store a few configuration settings:

  • server address
    • it's a pain in the ass typing an IP over-and-over
    • often developers are connecting to the same server
  • application's bundled index.html URL
    • needed to go to the home page from the streamed app
    • cannot used window.history.back(window.history.length);
      • going back in history will display the cached page state
      • we can reset this state, but it's opening new issues
      • a remote reliable approach is to navigate forward to the www/index.html

Once we have connected to the streamed app, we are essentially viewing a different domain and different web site. We cannot access localStorage or sessionStorage. The only common place of storage is the file system.

Create a message for server component to know which platform app is on.

In order to serve an app properly, the server component will need to send the correct platform cordova.js. However, since user agent sniffing on the server side can be messy, annoying, and brittle, we'll need to have a way for the app to send a signal telling the server what platform its deployed on.

Tag milestone 0.0.1

We should get in the habit of versioning the PhoneGap App.

I'll tag this milestone as 0.0.1. Let's use the www/config.xml version element to track it.

Support Local Development

Opening Application

Should prompt the user for an IP address and port. The port should default to 3000.

Submitting IP Adress

Should simply change the windows location: window.location = location;

It's crude, simple, and nearly useless but it's the beginning of something much better.

Display Remote App

After entering the IP address, the user should press a submit button.

The application view should then change to the remote app (web page).

Ping timeout is too short

On my home network, hitting a new port for the first time can sometimes take a moment. I'm finding that the timeout period is too short.

Refactor source code

The JavaScript is largely untouched since @yoheishimomae initial design. At the very least, we should wrap everything up into a closure. Ideally, we'd like to showcase best practices with browserify et al.

Add iOS Platform

Successfully build the iOS platform.

Version control the platforms/ios directory. Add the build artifacts to .gitignore.

Add Android Platform

Successfully build the Android platform.

Version control the platforms/android directory. Add the build artifacts to .gitignore.

Flicker on Splash Screen Transition

On my iPhone 5, I see a flicker when hiding the splash screen and showing the app. It only happens once-in-a-while. I imagine on slower devices, it will be more noticeable.

Display URL Keyboard

Display the URL-specific keyboard instead of the generic keyboard.

Also ensure that autocorrect and autocapitalization are disabled.

Update Loading State Visor Color

Currently, the visor color is red during the loading state. This is actually used as the alert state for error messages.

While the application is initializing, we should use a more positive state color such as blue (default visor color) or green (implying a success state).

I think blue best represents the loading state, because it is neither a success or error.

App has a tendency to throw a JavaScript error about not being to find the LocalFileSystem variable

I can't quite find the steps to reproduce this problem, but sometimes when I'm browsing my test www/ I find that in this error gets thrown in the remote web inspector:

ReferenceError: Can't find variable: LocalFileSystem

Referencing this from the homepage.js

    function readFile(filepath, callback) {
        window.requestFileSystem(
            LocalFileSystem.PERSISTENT,
    ...

Once this error gets thrown, the JavaScript stops execution and I'm unable to use the three finger tap to go back to the homepage.

The best way I found to reproduce is to navigate to a page, minimise the app, maximise the app, and then navigate to another page. More often than not, the new page will throw the error but not every time.

UI Direction

Let's use the awesome UI skin that Yohizzle created (in the res/design folder).

Replace with what is being used right now (the PG getting started skin).

Cannot connect outside of 127.0.0.1

At the moment, the config.xml is locked to 127.0.0.1*.

Now that we've deployed the app to a device, we need to open this to any address and any port.

Add all supported plugins

Add all official PhoneGap plugins to the PhoneGap app.

This will allow the app to always build with the native chunks of each plugin.

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.