Giter Site home page Giter Site logo

phonegap-template-hello-world's Introduction

Hello World PhoneGap Template bitHound Score

A PhoneGap Hello World template

Usage

PhoneGap CLI

The hello-world template is the default when you create a new application using the phonegap-cli.

phonegap create my-app

Create an app using this template specifically:

phonegap create my-app --template hello-world

To see a list of other available PhoneGap templates:

phonegap template list

<access ...> (All)

This template defaults to wide open access.

<access origin="*" />

It is strongly encouraged that you restrict access to external resources in your application before releasing to production.

For more information on whitelist configuration, see the Cordova Whitelist Guide and the Cordova Whitelist Plugin documentation

Content Security Policy (CSP)

The default CSP is similarly open:

<meta http-equiv="Content-Security-Policy" content="default-src * 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src *" />

Much like the access tag above, you are strongly encouraged to use a more restrictive CSP in production.

A good starting point declaration might be:

<meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: 'unsafe-inline' https://ssl.gstatic.com; style-src 'self' 'unsafe-inline'; media-src *" />

For more information on the Content Security Policy, see the section on CSP in the Cordova Whitelist Plugin documentation.

Another good resource for generating a good CSP declaration is CSP is Awesome

phonegap-template-hello-world's People

Contributors

brianleroux avatar carynbear avatar chrisgriffith avatar devgeeks avatar hollyschinsky avatar jcesarmobile avatar mwbrooks avatar ryanstewart avatar stevengill avatar surajpindoria avatar timkim 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

Watchers

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

phonegap-template-hello-world's Issues

After build, apk fails to install on android.

I was developing using phonegap build when my installs started to fail on my device, these are the steps I use to product the problem.
-create new app (in phonegap)
-link it to this repo
-build all
-use qr reader to download apk onto my android device
-download file from s3
-open file
-select download
-prompted with message "App not Installed"

Any ideas?

How will i disable debugging in a phonegap APK before published in Google Play?

I have built apk by PhoneGap but when i upload it in google play then google play show me this massage

Upload failed: 1. You uploaded a debuggable APK. For security reasons you need to disable debugging before it can be published in Google Play. Learn more about debuggable APKs.

2.You uploaded an APK that was signed in debug mode. You need to sign your APK in release mode. Learn more about signing.

how can i solve it ?

Jasmine?

I'm new to PhoneGap so excuse my ignorance...

I started my own project and noticed the "jasmine" files but I'm not really sure the purpose of those files. They don't seem to be linked to index.html and it seems like it's safe for me to just delete them and exclude them from my project. Are they there to help with developing a testing framework?

Add content element

According to the Apache Cordova documentation, the <content src="index.html" /> element is optional.

Unfortunately, at least one platform assumes that the element will exist. When the element is missing, an error is thrown.

Until Cordova can resolve the issue, we can by-pass the error by adding the element to the config.xml.

See phonegap/phonegap-cli#481 for the original issue.

Not possible to submit via Application Loader

Just to get the build and delivery process started, we want to build and upload the build of this project to start with. When submitting the ipa via Application Loader the following errors are presented:

image

I think it would benefit PhoneGap developers if the project would have all it takes to be able to push the ipa to itunes. So I guess some icons are missing, but adding them doesn't resolve the problem.

Ideas for config.xml cleanup

We can't document the config.xml file through comments since they do not come thru in the generated xml file when the user gets this project as a base. Maybe it would be better to have a more basic, default config.xml file with the common properties used with the CLI included only (DisallowOverscroll etc). Most of the properties in the default project now are specific to PhoneGap Build and confuse people only using the CLI.

Then maybe we could also create a new config.md (or readme) that documents them all and/or points to the interactive reference guide here: http://devgirl.org/files/config-app/. We could also point out the PGB ones specifically rather than include them every time as the default as we are now.

Another option is to use the command line to prompt and ask if they're using PGB after they type the basic create command (before the project is downloaded) and include a config.xml with those properties specific to the tool they're building with.

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.