blefebvre / aem-phonegap-starter-kit Goto Github PK
View Code? Open in Web Editor NEW⛔️DEPRECATED: Bootstrap your AEM Apps project
License: MIT License
⛔️DEPRECATED: Bootstrap your AEM Apps project
License: MIT License
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 :)
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
Describe tradeoff and compare with Geo sample which does the opposite.
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?
Issue reported from Ben:
The screenshots node here should be removed, it's the wrong node structure.
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:
The Chrome console is spitting this:
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.
The documentation states "clone this repository to begin".
We should provide a short description of alternate options.
There are three options:
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.
how to run in Windows 7.
Facing multiple issues
.
./customize-app.sh cannot run. Tried converting to .bat.
But still not working
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.
Error in Safari remote Web Inspector:
ERROR: Start Page at 'www/content/brand_name_placeholder/app_name_placeholder/en.html' was not found.
The actual path to the splash page on the filesystem is:
www/content/phonegap/app_name_placeholder/en.html
To reproduce: connect to an AEM instance which has the starter kit installed.
Result: you will not see an icon listed with the app in PGE viewer.
No longer necessary in 6.1.
add prop to top level page:
cq:deviceGroups String[] /etc/mobile/groups/responsive
It should be removed in a new branch, and merged into master when 6.1 is made available.
Second page should be a child of home
.
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.
Add the adbmobile plugin (minus sample code) and instrument the navigation controller to register clicks when an analytics account has been configured.
This should enable simultaneous authoring & developing, without fear of clobbering changes to authorable content such as:
For handling changes to config.xml
Steps to reproduce:
phonegap run ios
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
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.
I've seen that every component is written in jsp's. Is it possible to make your own components by using Sightly?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.