Good evening. I’ve starting playing with the iOS side of Xojo this past week and was trying to build a simple web browser using the iOSHTMLViewer. I am wondering if I’m overlooking something simple.
I’ve created the app, added a button, a text field, and the HTML viewer. When running in the simulator and on my iPhone I get odd results. I can see local content created on the device, but I can not open any webpages on the Internet.
Below is an example of the code in the buttons Action Event:
'Removed the input field from the equation for troublehsooting. Currently nothing is loading when referencing sites on the net.
'Create a local HTML file and open it.
'So far this loads the local file content but if I click on the link I get nothing
Dim html As Text = “Hello!
Dim htmlFile As FolderItem = SpecialFolder.Documents.Child(“hello.html”)
Dim output As TextOutputStream
output = TextOutputStream.Create(htmlFile, TextEncoding.UTF8)
The comments are there because I was making notes as I played around. I can see the word “Hello!”, the link to CNN, and then an empty iframe, followed by the “Final Line” text. That lets me know the HTMLViewer is processing the local file.
If I just send it the text of the URL entry field, nothing appears. If I click on the “CNN” link in the locally generated file, nothing happens. If I hold down and choose the option to open the link, nothing happens.
Is there a sandbox/safety setting/some other obvious thing that I’m missing that I need to doc to view internet pages? This is happening with both the simulator and with the app loaded to my personal phone.
BTW, this is with Xojo 2016 Release 2.