Giter Site home page Giter Site logo

aem-phonegap-starter-kit's People

Contributors

arumsey avatar bhellema avatar blefebvre avatar johobot avatar justinedelson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aem-phonegap-starter-kit's Issues

App doesn't build for Android and iOS

Hi,
I can't get this aem-phonegap-starter-kit (vanilla version) to build properly:
Installing a build which was triggered remotely from AEM to a Phonegap Build account, comes up with an error message relating to the Cordova Plugins on an Android and iOS device: Device is not defined. I've added a screenshot.
Building it locally via Phonegap CLI works for iOS but not for Android (due to multiple errors in the generated AndroidManifest.xml).
I've tried some other apps (e.g kitchen sink) but none of them work when a build from Phonegap Build is installed.
The only app building and installing properly is the Geometrixx Outdoors App.

I have no idea what the issue is and would be glad for any kind of help on this. Because we have a cool Angular/Ionic App in AEM now and can't get it onto a device :)

Thanks,
Alex
screenshot_2015-08-24-13-58-52

Android init missing pge-package.json

I cloned the latest repo, customized and deployed the app. Downloaded the build package from the app dashboard tile, build and tried to run on Android device(s) and emulator. I got a blank white screen after the splash screen. When I hooked up chrome debugger I see this error

Failed to load resource: net::ERR_FILE_NOT_FOUND
file:///storage/emulated/0/www/libs/mobileapps/components/splash-page/clientlibs.js
[contentInit] determine if initial app copy needs to occur
clientlibs.js:297
[contentInit] current location: [file:///storage/emulated/0/www/content/phonegap/prototype-mobile-first/en.html]
clientlibs.js:298
[contentInit] successfully gained access to the file system
clientlibs.js:362
[contentInit] checking for up-to-date content
clientlibs.js:416
[contentInit] manifest being read from: [file:///storage/emulated/0/www/pge-package.json]
clientlibs.js:419
initializeApplication error: [Request to url: [file:///storage/emulated/0/www/pge-package.json]
resulted in a connection error.].
clientlibs.js:1058
Failed to load resource: net::ERR_FILE_NOT_FOUND

What's the "btford-angular-phonegap" library used for?

aem-phonegap-starter-kit/content-dev/src/main/content/jcr_root/etc/designs/phonegap/brand_name_placeholder/app_name_placeholder/clientlibsall/.content.xml embeds the "btford-angular-phonegap".
What's the use of this library?

Getting errors when editing a page.

Hi there,

I am am getting the error I paste below when trying to edit the page http://localhost:4502/editor.html/content/phonegap/leaflet/en/home.html as an author in AEM

Here are my configuration:

  • AEM 6.1
  • Apps FeaturePack 2.0.4
  • Apache Maven 3.2.3
  • Node.js v0.12.2
  • Cordova 5.3.1
  • xcode 6.4
  • ios-sim 5.0.1

The Chrome console is spitting this:

Screenshow

Uncaught Error: [$injector:modulerr] Failed to instantiate module AEMAngularApp due to:
Error: [$injector:modulerr] Failed to instantiate module cqAppNavigation due to:
Error: [$injector:modulerr] Failed to instantiate module btford.phonegap.ready due to:
Error: [$injector:nomod] Module 'btford.phonegap.ready' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
http://errors.angularjs.org/1.4.3/$injector/nomod?p0=btford.phonegap.ready
at http://localhost:4502/etc/clientlibs/phonegap/ionic-1.0.0.js:8895:12
at http://localhost:4502/etc/clientlibs/phonegap/ionic-1.0.0.js:10785:17
at ensure (http://localhost:4502/etc/clientlibs/phonegap/ionic-1.0.0.js:10709:38)
at module (http://localhost:4502/etc/clientlibs/phonegap/ionic-1.0.0.js:10783:14)
at http://localhost:4502/etc/clientlibs/phonegap/ionic-1.0.0.js:13189:22
at forEach (http://localhost:4502/etc/clientlibs/phonegap/ionic-1.0.0.js:9163:20)
at loadModules (http://localhost:4502/etc/clientlibs/phonegap/ionic-1.0.0.js:13173:5)
at http://localhost:4502/etc/clientlibs/phonegap/ionic-1.0.0.js:13190:40
at forEach (http://localhost:4502/etc/clientlibs/phonegap/ionic-1.0.0.js:9163:20)
at loadModules (http://localhost:4502/etc/clientlibs/phonegap/ionic-1.0.0.js:13173:5)
http://errors.angularjs.org/1.4.3/$injector/modulerr?p0=btford.phonegap.rea…ocalhost%3A4502%2Fetc%2Fclientlibs%2Fphonegap%2Fionic-1.0.0.js%3A13173%3A5)
at http://localhost:4502/etc/clientlibs/phonegap/ionic-1.0.0.js:8895:12
at http://localhost:4502/etc/clientlibs/phonegap/ionic-1.0.0.js:13212:15
at forEach (http://localhost:4502/etc/clientlibs/phonegap/ionic-1.0.0.js:9163:20)
at loadModules (http://localhost:4502/etc/clientlibs/phonegap/ionic-1.0.0.js:13173:5)
at http://localhost:4502/etc/clientlibs/phonegap/ionic-1.0.0.js:13190:40
at forEach (http://localhost:4502/etc/clientlibs/phonegap/ionic-1.0.0.js:9163:20)
at loadModules (http://localhost:4502/etc/clientlibs/phonegap/ionic-1.0.0.js:13173:5)
at http://localhost:4502/etc/clientlibs/phonegap/ionic-1.0.0.js:13190:40
at forEach (http://localhost:4502/etc/clientlibs/phonegap/ionic-1.0.0.js:9163:20)
at loadModules (http://localhost:4502/etc/clientlibs/phonegap/ionic-1.0.0.js:13173:5)
http://errors.angularjs.org/1.4.3/$injector/modulerr?p0=cqAppNavigation&p1=…ocalhost%3A4502%2Fetc%2Fclientlibs%2Fphonegap%2Fionic-1.0.0.js%3A13173%3A5)
at http://localhost:4502/etc/clientlibs/phonegap/ionic-1.0.0.js:8895:12
at http://localhost:4502/etc/clientlibs/phonegap/ionic-1.0.0.js:13212:15
at forEach (http://localhost:4502/etc/clientlibs/phonegap/ionic-1.0.0.js:9163:20)
at loadModules (http://localhost:4502/etc/clientlibs/phonegap/ionic-1.0.0.js:13173:5)
at http://localhost:4502/etc/clientlibs/phonegap/ionic-1.0.0.js:13190:40
at forEach (http://localhost:4502/etc/clientlibs/phonegap/ionic-1.0.0.js:9163:20)
at loadModules (http://localhost:4502/etc/clientlibs/phonegap/ionic-1.0.0.js:13173:5)
at createInjector (http://localhost:4502/etc/clientlibs/phonegap/ionic-1.0.0.js:13099:11)
at doBootstrap (http://localhost:4502/etc/clientlibs/phonegap/ionic-1.0.0.js:10457:20)
at bootstrap (http://localhost:4502/etc/clientlibs/phonegap/ionic-1.0.0.js:10478:12)
http://errors.angularjs.org/1.4.3/$injector/modulerr?p0=AEMAngularApp&p1=Er…calhost%3A4502%2Fetc%2Fclientlibs%2Fphonegap%2Fionic-1.0.0.js%3A10478%3A12)

Any idea of what went wrong?
Thanks in advance.

Documentation should explain the best way to use this repository

The documentation states "clone this repository to begin".

We should provide a short description of alternate options.

There are three options:

  • download as a zip
  • clone (you will not be able to push changes to this repository unless you are added as a developer)
  • fork (makes a copy of the repository into your own github account, which you can then clone and modify as desired)

If you only want the latest version to develop on, then the zip is a simple option. Clone is the easiest if you want to view the entire history of the project, and if you may at some point want to contribute back.

not running in Windows 7

how to run in Windows 7.
Facing multiple issues
.

  1. ./customize-app.sh cannot run. Tried converting to .bat.
    But still not working

  2. Not able to checkout code through git

error: unable to create file content-dev/src/main/content/jcr_root/content/phone
gap/app_name_placeholder/shell/_jcr_content/pge-app/app-content/phonegap/plugins
/ADBMobile/sdks/BB10/AdobeMobileLibrary/Device-Coverage/libADBMobileShared.so (F
ilename too long)

warning: Clone succeeded, but checkout failed.

App customisation script breaks with spaces in brand name

The syntax for customising an app is:

./customize-app.sh "BrandName" AppName

However, if BrandName contains spaces, this fails.

e.g.

./customize-app.sh Brand Name AppName
This script requires exactly 2 arguments: brand_name followed by app_name
For example: ./customize-app.sh Geometrixx ShapesCon

or

./customize-app.sh "Brand Name" AppName
sed: 1: "s/brand_name_placeholde ...": unterminated substitute in regular expression
Finished customizing app with Brand Name brand name and AppName app name.

App name should include "App" and not "Shell"

Apps generated from the starter kit are named "AppName Shell" whereas other apps tend to be named "AppName App".

See e.g.
screenshot 2015-01-29 16 13 53

It would be better if starter kit app names were consistent with apps shipped with AEM.

Instrument with Adobe Mobile Services

Add the adbmobile plugin (minus sample code) and instrument the navigation controller to register clicks when an analytics account has been configured.

Separate dev content from author driven content

This should enable simultaneous authoring & developing, without fear of clobbering changes to authorable content such as:

  • page content
  • data driven nodes (such as product information)
  • tags
  • tile configurations

Content update does not work out of the box

Steps to reproduce:

  1. Download or clone starter kit, customise, build and install into AEM 6.1
  2. Download development source of app from AEM PhoneGap Build tile
  3. Do phonegap run ios
  4. Click the update button in app

Expected result: a "content is up-to-date" dialog or "content update available" dialog or "error" dialog
Actual result: UX silently fails in-app, debug log prints a 404

2015-06-19 11:35:26.165 DemoApp[69195:9314387] Request to url: [http://localhost:4503/content/phonegap/DemoApp/en/jcr:content/pge-app/app-config.pge-updates.json?ifModifiedSince=1434710055570&1434710126154] returned status: [404].

Publishing the app content fixes the issue, but note that when no update is available, the UX silently fails. Expected result would be 'no update available' dialog.

2015-06-19 11:48:29.851 DemoApp[69195:9314387] [contentUpdate] NO update is available for [en].
2015-06-19 11:48:29.851 DemoApp[69195:9314387] no update is currently available

Navigation breaking on iOS simulator

The 'goMenuItem' and 'go' function used to display a new view works correctly in the AEM editor view, however when the source code is downloaded and run on the iOS simulator, or on an actual iOS device the navigation refreshes to the same page.

To recreate the bug, drag and drop an image component and set the link to another page in the app.

Sightly components?

I've seen that every component is written in jsp's. Is it possible to make your own components by using Sightly?

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.