Software Archive
Read-only legacy content
17061 Discussions

InAppBrowser blank screen after window open is called

Luca_B_
Beginner
3,298 Views

Hi, I'm developing an app with cordova Inappbrowser plugin, the app have 5 buttons that use the extPage() function in order to open an external web page. I tested my application on ANDROID and now the application is published on play store and work percfectly. the problem is under iOS because when i press the button in the app that call the extPage() function (the extPage() funtion contain var ref = window.open('http://www.mysite.com/default.htm', '_self', 'location=no');) the system open a blank screen for 1 sec before open the dfault.htm page, and this temporary blank screen cause the rejection from the apple revisor ! After 1 sec or less the inappbrowser open regolarly my web page and all work perfectly.

I can't understand why this is a problem and I don't know how to solve this issue.

Can anyone help me ?

0 Kudos
7 Replies
Hamilton_Tenório_da_
Valued Contributor I
3,298 Views

I use inappbrowser plugin but my command is

 cordova.InAppBrowser.open(URL, '_blank', 'location=yes');

It works to me. Try it.

 

0 Kudos
Luca_B_
Beginner
3,298 Views

Hi Hamilton,

many thanks for your answer, I tried in local under WifI and work fine, now I try to publish the app on App Store and I hope will be not rejected for the same problem !

I will inform you about !

thanks again

Luca

 

 

 

0 Kudos
Hamilton_Tenório_da_
Valued Contributor I
3,298 Views

@Luca> if you have an Apple device, send your .api file to review. Meanwhile, use the TestFlight to see it is working well on iOS. For me, no problem. I have some apps published at Apple Store with this function, without problem. Good luck.

0 Kudos
Luca_B_
Beginner
3,298 Views

Hello

I used cordova.InAppBrowser.open(URL, '_blank''location=yes'); instead window.open and the app was correctly published on apple market.

I tryed in local under Wifi with Intel App Preview and all work fine.

The problemis that if I download the app from the AppStore on my Iphone and try to push a button in the main menù (the first button use cordova.InAppBrowser.open(mysite, '_blank''location=yes');) the system show me a blank page and my destination link not appear !

All buttom that use cordova.inappbrowser.open show only a blank page !

Why ? What I cando ...

I'm desperated ...

0 Kudos
Hamilton_Tenório_da_
Valued Contributor I
3,298 Views

Luca> I am not sure, but did you grant full access in White List properties?

0 Kudos
Luca_B_
Beginner
3,298 Views

Hi

could be, because I left only the standard entry as follow : 

IN NETWORK REQUEST:

http://debug-software.intel.com/*

https://debug-software.intel.com/*

http://html5test.com/*

http://www.i-drain.net/*

IN INTENT :

http://html5test.com/*

http://www.i-drain.net/*

IN NAVIGATION is blank

do you suggest to put my wesiste in each list ? or in a specific one ?

Many thanks for your help ! I appreciate it !

Luca

 

 

 

0 Kudos
PaulF_IntelCorp
Employee
3,298 Views

Luca -- yes, you need to update the whitelist entries to match the site or sites you are referencing. If I understand the way you are referencing those site links, you may also have to add them as NAVIGATION entries, as well as NETWORK REQUEST entries. Go here for an intro to whitelist rules > https://software.intel.com/en-us/xdk/docs/using-cordova-whitelist-rules-with-intel-xdk < and see the image below for a version of rules that overly permissive (you should also consider using CSP rules):

Screen Shot 2016-10-19 at 8.58.53 AM.png

0 Kudos
Reply