Software Archive
Read-only legacy content
17061 Discussions

Unable to join my domain (domain whitelist issue)

KEVIN_B_3
Beginner
551 Views

Hi,

I'm developping a hybrid app for android and ios, the first and active tab is an iframe including "http://sub.mydomain.net/", it work perfecly on android but on ios i can't configure multi domain whitelist (internal for this link and external for others), if i try it i'm stuck on splashscreen, then when i configure ONLY my domain it work for many builded apps... Then stop working and do the same issue : stuck on splashscreen again.

NOTE : If i use an older working builded app, a got this problem anyway, only way for resolve problem is to change link for  "http://sub1.mydomain.net/",  "http://sub2.mydomain.net/" ... Issue always occuring aflter some builds.

Here is four usefull exemples (i tried several different syntaxes, just for see if there is something new, but nothing happened) :

TRY 1 (never work) :
<access origin="*"/>

TRY 2 (never work) :
<access origin="http://*"/>

TRY 3 (before issue, never work) :
<access origin="http://mydomain.net/*"/>
<access origin="http://*" launch-external="yes"/>
<access origin="https://*" launch-external="yes"/>

TRY 4 (working for many builded apps then stuck on splashscreen) :
<access origin="http://sub.mydomain.net/*"/>

Thanks in advance for any help ! Ask me if you need informations.

Best regards.

0 Kudos
3 Replies
PaulF_IntelCorp
Employee
551 Views

Try using the inAppBrowser plugin, you might have better luck with that. Push the (i) icon to see the documentation for it and search the web for examples of how to use it (search for "cordova inappbrowser plugin").

0 Kudos
KEVIN_B_3
Beginner
552 Views

Hi Paul,

Thanks for helping me, but I don't think it can resolve my issue (or maybe i don't understood all features from inAppBrowser, explainations and exemples found on web talk about where to open url, i don't realy need that).

I just need (for the while) to display my website into my app with below this, three tabs created with ionic framwork :

Tab 1 : my website home, actually called with an iframe (I dont know if there is a better way to do this)
Tab 2 : contact form, with ionic/angular (not from iframe)
Tab 3 : specific page from my website into another iframe

It work fine on android with following domain whitelist :

<access origin="http://mydomain.net"/>
<access origin="http://*" launch-external="yes"/>
<access origin="https://*" launch-external="yes"/>

I want to get same thing on ios, any idea ?

0 Kudos
PaulF_IntelCorp
Employee
552 Views

You may find that such an app will be rejected by the Apple store -- they generally do not care for apps that are simple wrappers around web sites. There is a way to create an icon on a users' desktop that takes you directly to your web site. Search for "iphone desktop shortcut icon" to find some articles that are relevant.

Here's the docs I would recommend using for inAppBrowser: https://github.com/apache/cordova-plugin-inappbrowser#cordovainappbrowseropen

If you wish to use iframes, try this old sample: https://github.com/gomobile/sample-html5-support-test, you can download a ZIP of the project and then "open" using the XDK (Projects tab > Open an Intel XDK Project). It will likely do an update when you do an update, since it has not been updated in some time.

For more details on the domain whitelists, see this doc page: https://software.intel.com/en-us/articles/cordova-cli-412-domain-whitelisting-with-intel-xdk-for-ajax-and-launching-external-apps

0 Kudos
Reply