Connecting Phonegap Enterprise to Local AEM instance | Community
Skip to main content
Level 2
October 16, 2015
Solved

Connecting Phonegap Enterprise to Local AEM instance

  • October 16, 2015
  • 5 replies
  • 2395 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by penguinant

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?

5 replies

smacdonald2008
Level 10
October 16, 2015

The Eng team replied and said:

"You set the referrer filter to allow empty: http://docs.adobe.com/docs/en/aem/6-1/author/authoring-mobile-apps/setting-your-referrer-filter-to-allow-empty.html"

penguinantAdobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

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?

Level 2
October 16, 2015

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

Level 2
October 16, 2015

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?

kishorey3174840
November 11, 2015

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.