Forum Archive

Some websites not displayed in webview

cvp

Why some web sites (ex: http://webpagetopdf.com/) are not displayed in ui.webview?

cook

This works for me...

import ui
w = ui.WebView()
w.load_url('http://webpagetopdf.com/')
w.present()

Is there something really different you're trying to do?

cvp

I forgot to specify my script runs in appex mode...

cook

Okay yes, that's roughly the same issue from this post. It seems to be some kind of bug. My guess is that it's with caching somehow, but I'm not sure. I suppose @omz will have that fixed soon enough!

cvp

Thanks for your help.
In the appex mode, a webview for a file is ok, and even for some web pages like Google.com...
Strange

omz

I think this might have to do with the new-ish policy that iOS apps are not allowed to use plain http by default (so Google.com still works because it's https). I turned that off for the main app, but that probably doesn't have an effect on the extension. I'll have to check that later.