facebook

Config.xml File and Domain Whitelist

  1. MyEclipse IDE
  2.  > 
  3. Mobile Tooling
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #347665 Reply

    dizon
    Member

    Hi,

    I’m trying to follow the instructions as seen here (http://docs.phonegap.com/en/2.1.0/guide_whitelist_index.md.html#Domain%20Whitelist%20Guide) to add a domain whitelist to my mobile app, however I am unsure as to where to add the config.xml file since in MyEclipse there is instead a buildconfig.xml file for both Android and iOS. Attempts to add code like “<access origin=”http://google.com&#8221; />” and “<uses-permission android:name=”android.permission.INTERNET” />” into these files does not work – any help would be greatly appreciated.

    Thanks

    #347692 Reply

    Hi dizon,

    At this time MyEclipse App Center Builder (cloud service) does not support the cordova/phonegap config.xml. The next major version of MyEclipse will provide full cordova and phonegap build integration removing this delta. We hope to make it available as an early release in late March/early April time frame.

    But, please be aware that the Network permission is enabled in the buildconfig.xml by default, you can see it opening this file in MyEclipse. Also you don’t need to add your domain to the white list because our apps have <access origin=”*”/> option which means “allow all domains”.

    #347703 Reply

    dizon
    Member

    Ah, thanks so much for that information. Now it seems that we’ve run into a separate problem – we are able to make cross-domain calls to an SSL server via the mobile simulator in MyEclipse (localhost) and via iOS devices. However, when we deploy an APK to an android device, our ajax calls all return with the status of 0 and stop working. From investigating the issue via Google/StackOverflow, it seems that Phonegap/Cordova doesn’t work with cross domain SSL requests after exporting an APK. Is this true? And if so, are there any known workarounds? Cross domain calls from all origins are also enabled server-side.

    Thanks for your time.

    #347724 Reply

    Hi dizon,

    A known issue for an android cordova/phonegap app failing to connect via https with a server is due the server using a self-signed certificate. Can you share if this is the case for your server?

    #347748 Reply

    dizon
    Member

    Hi,

    We’ve got a verisign signed certificate. When we access the website directly, the browser is happy to use the cert with no issues.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Config.xml File and Domain Whitelist

You must be logged in to post in the forum log in