AEM6.1 mobile Apps

徘徊边缘 提交于 2020-01-06 14:38:13

问题


I needed some inputs on mobile apps. Query: I have an existing web application on AEM(angularJS is not used). I want to transform the same on Mobile app using AEM6.1

While reading through the documentation section of AEM Apps, I found that the mobile App built on AEM - works on the terminology and AngularJS framework. - mobile App has different paths and app structure as compared to AEM web Applications -since, phonegap has to be used, relative path needs to be different than the same of web application. I am in a dilemma as If I would be able to convert my existing web app into a mobile App or not. If anyone of you has done some research on this, it would be very helpful.

Thanks in advance!!!

Regards


回答1:


You can very well convert your AEM desktop application to a mobile app(site should be responsive).

AEM makes use of Cordova (PhoneGap) and ContentSync framework to create apps for both android and iOS. More about how to config ContentSync here. In simple terms, ContentSync packages your application(/content, /apps, /etc,...) based on defined set of configurations and cordova(phonegap) helps you access native phone capabilities and to create the archive file (apk/ipa). There is more than one way to create an app using AEM.

1. Using Cordova CLI :

You setup a cordova project in your filesystem. Then create contentsync configuration for your AEM project. Generate and download the application archive from here. Cordova project you had setup earlier will have the below folder structure.

Place the contents of archive file inside www folder, modify config.xml according your application and initiate build. Using this method, you will require an Apple system to generate .ipa file since it makes use of xcode and windows makes use of npm node js for the initial dev env setup.

2. Using OOTB 'Initiate phonegap build' workflow and AEM cloud config

This is an easy approach and does not require you to setup any cordova project in your system. All you have to do is setup contentsync configuration, add a few properties for the workflow to recognise your project and then trigger the workflow. Follow this.

3. Using Apps console in AEM 6.1

This also makes use of ContentSync underneath. Apps console makes the app very easy to maintain and configure, it also has inbuilt configurations for push notification, deep linking etc. Go through the info here. Refer to the sample geometrixx-outdoors project created in apps console, will help you understand better.

PS: Cordova and phonegap are the same. You can think of Cordova as Linux kernel and PhoneGap as linux distribution.



来源:https://stackoverflow.com/questions/35857494/aem6-1-mobile-apps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!