Page 1 of 2
InAppBrowser don't load
Posted: Thu Aug 14, 2014 8:40 am
by Yoram Harth
Hi,
Trying to build a link that opens a website in a InAppBrowser, the link loads for a second the InAppBrowser but afterwards the InAppBrowser disappear and the website is shown in the app(without a back/done option).
My html code:
Neutrogena Oil-Free Acne Wash Facial Cleanser, Pink Grapefruit, 6 Ounce
My javascript event code (I added an event to the html_180 section:
var a = $('a[name=html_180_link]');
window.open(a.attr('href'), "_blank");
I tried also "_self" but I got the same error...
Thanks!
InAppBrowser don't load
Posted: Thu Aug 14, 2014 9:49 am
by Evgene Karachevtsev
Hello Yoram,
We can't reproduce this. Could you please tell us on what device with what OS do you test? On what event do you call this code?
InAppBrowser don't load
Posted: Thu Aug 14, 2014 1:12 pm
by Yoram Harth7043908
To reproduce it please go to the xacnecleanser page in the app .
On the bottom of the page I put links to two products .
I am testing it with your testing app on Iphone 5 IOS8 (beta 5) .
Yoram
InAppBrowser don't load
Posted: Thu Aug 14, 2014 2:08 pm
by Evgene Karachevtsev
Yoram,
Unfortunately we don't support IOS8, this is the reason why you get this issue.
InAppBrowser don't load
Posted: Thu Aug 14, 2014 4:17 pm
by Yoram Harth7043908
I tested it also on iPhone 4s IOS7 - exactly the same problem . Can you please help ?
InAppBrowser don't load
Posted: Thu Aug 14, 2014 6:31 pm
by Kateryna Grynko
Hi Yoram,
Could you please try the simplest InAppBrowser example? Does it work for you? http://docs.phonegap.com/en/2.3.0/cor...
InAppBrowser don't load
Posted: Sat Aug 16, 2014 1:31 pm
by Yoram Harth
It's not working for me... I copied you the code I have in my app, I did exactly like you wrote in your documentation...
The InAppBrowser popes for a second and then closed and I see the link page without a frame (no way to go back to the app).
InAppBrowser don't load
Posted: Sat Aug 16, 2014 1:35 pm
by Yoram Harth
This is the error I see when Im trying to open a webpage in Xcode:
2014-08-16 16:33:57.801 MDACNE[3771:64840] THREAD WARNING: ['InAppBrowser'] took '99.768799' ms. Plugin should use a background thread.
2014-08-16 16:33:57.804 MDACNE[3771:64840] CDVWebViewDelegate: Navigation started when state=1
2014-08-16 16:33:57.804 MDACNE[3771:64840] Failed to load webpage with error: CDVWebViewDelegate: Navigation started when state=1
InAppBrowser don't load
Posted: Sat Aug 16, 2014 1:36 pm
by Illya Stepanov
Hi Yoram,
Please show your code example, we will test it.
InAppBrowser don't load
Posted: Sat Aug 16, 2014 1:48 pm
by Yoram Harth
The app is called Mdacne.
It is publicly shared.
The code is on the page called: xacnecleanser.
Thanks,
Yoram