- This topic has 4 replies, 2 voices, and was last updated 10 years, 9 months ago by dizon.
-
AuthorPosts
-
dizonMemberHi,
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” />” and “<uses-permission android:name=”android.permission.INTERNET” />” into these files does not work – any help would be greatly appreciated.
Thanks
support-octavioMemberHi 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”.
dizonMemberAh, 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.
support-octavioMemberHi 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?
dizonMemberHi,
We’ve got a verisign signed certificate. When we access the website directly, the browser is happy to use the cert with no issues.
-
AuthorPosts