AEM 6.0 - Content Sync does not work for Apps

Avatar

Avatar

Mat_Barreto

Avatar

Mat_Barreto

Mat_Barreto

15-10-2015

Hello everybody.

 

I'm trying to use and understand the new AEM features like Apps with Phonegap, but with some problems.

To begin with, the Content Sync. So, here is my situation:

- I'm building the Geometrixx Outdoors Apps (from the page English) via PhoneGap Build [selecting this "page" of the app and clicking on "Build Remote", after configuring my PhoneGap cloud service];

- Then, I download the .apk from my PhoneGap account and install it on a mobile Android Device;

- When I open it on my Android device (in this case, a virtual machine running Android 4.3), the App works just fine and I can see the app fetching data from my AEM server via Android logs on the first time it runs (log below);

[img]http://i.imgur.com/bH3MOmd.png[/img]

However, when I changed some content on my server (author instance), saved it and published it, then click "Update" on my app, the content is not synced and I can see errors regarding the fetch try of the app (as the log on the link below show). This changes can be viewed on my Publish instance, but does not get into the app. 

Important: I'm running a default AEM 6.0 version (already tested with SP1 and without it) and building and changing Geometrixx Outdoors App. Can anyone here make it work? Is there some step or configuration that I'm missing or skipping?

More info about enviroment: Windows 7 Pro 64x / Android VM 4.3

Thanks everyone in advance,

Matheus Barreto.

View Entire Topic

Avatar

Avatar

JohnFait

Avatar

JohnFait

JohnFait

15-10-2015

Yes, try downloading CLI which will export the app as a phonegap app allowing you to use PG CLI to build and run it.

It expects that you have a local build environment for the platform you are targeting, such as iOS or Android. It will try local build be default and if not found attempt a remote build (PGBuild).  If you haven't setup and Android dev environment you will need to do that first.

After extracting the downloaded zip try running;

'phonegap build android' or 'phonegap run android'      

http://docs.phonegap.com/en/3.2.0/guide_cli_index.md.html#The%20Command-Line%20Interface  (newer docs seem to reference cordova instead of phonegap)