Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

Connecting Phonegap Enterprise to Local AEM instance

Avatar

Level 2

Hi All,

I am new to development of mobile apps with AEM phonegap and have made use of AEM phonegap starter kit to build a sample app. I tried to run it by connecting my local instance to the AEM phonegap enterprise app. However, I am getting an error saying that the user name and password are invalid.

I am using a vanilla 6.1 instance with nothing but the app and I can log into the AEM instance from my mobile using admin/admin

 

However, I cannot seem to log into the instance via the AEM phonegap enterprise. Am I missing something here?

I also tried to run the app via the phonegap CLI but I am getting the following error

[img]Snip20150812_1.png[/img]

I have followed the steps listed here https://github.com/Adobe-Marketing-Cloud-Apps/aem-phonegap-starter-kit#run-on-the-ios-simulator

Downloading according to the above instructions is just giving me a metadata.xml file without any app files as attached. Any help is appreciated

1 Accepted Solution

Avatar

Correct answer by
Level 3

Hi Ravi,

In order to download the source for your app for building with the CLI you need to use the link on the PhoneGap Build tile. The download button you are using under Manage App is just the iTunes meta data that can be used with iTunesConnect for an app store submission.

As for your PhoneGap Enterprise App issue...are you getting the Undefined [object:Object] error after entering your user name and password? Do you ever get as far as seeing your list of apps?

View solution in original post

5 Replies

Avatar

Correct answer by
Level 3

Hi Ravi,

In order to download the source for your app for building with the CLI you need to use the link on the PhoneGap Build tile. The download button you are using under Manage App is just the iTunes meta data that can be used with iTunesConnect for an app store submission.

As for your PhoneGap Enterprise App issue...are you getting the Undefined [object:Object] error after entering your user name and password? Do you ever get as far as seeing your list of apps?

Avatar

Level 2

Hi Anthony,

I managed to download the source and simulate it on my mobile via the android SDK but am having issues with IOS which I believe is an issue with IOS-SIM . I will update my findings once I resolve the issue.

As far as PhoneGap enterprise app goes, The undefined error comes when I try to login. Here are the list of steps that I followed to connect my phonegap enterprise app to my local AEM instance

1. Connected Both the phone and the AEM instance on the same WIFI network.

2. Retrieved the IP address via Mac-->System Preferences-->Network-->WIFI

3. Tried to connect via the phonegap enterprise using the IP with port 4502 and using the default credentials admin:admin

Am I missing something here?

Thanks,

Ravi

Avatar

Level 2

Hi Scott,

Thanks for your reply and I have configured my aem instance to allow empty.

Now I am getting an Undefined [object:Object] error. I can still access the AEM instance on my iphone via the web browser. Are there any alternative ways?

Avatar

Level 1

I have the same issue. When I connect to http://<ip address>:4502 with admin/admin, I get a undefined object error. When I checked the logs, I see that the folder /libs/mobileapps/core is missing in AEM, which is giving a 404. Not sure if this problem was resolved for Ravi. Pls let me know how to solve this issue.