Is it possible to pass HTMLViewer a custom port on iOS

The following code works on Desktop but not iOS

HTMLViewer1.LoadURL "http://myserver.com:8999/myimage.jpg”
Is it possible to pass HTMLViewer a custom port on iOS ?

I don’t see why that would not work on iOS.

In fact, I just did a quick test and it seems to work fine.

I ran the QuoteService-SpecialURL example (in Examples/Web) locally.

Then I ran the HTMLViewerExample for iOS and pasted in the local URL to show a quote (http://127.0.0.1:8080/special/quote). The quote message appeared as expected in the HTMLViewer.

[quote=166032:@David Andrews]The following code works on Desktop but not iOS

HTMLViewer1.LoadURL "http://myserver.com:8999/myimage.jpg”
Is it possible to pass HTMLViewer a custom port on iOS ?[/quote]

I routinely debug my WE apps destined to iDevices exactly that way through the local area network :
http://192.168.1.72:8080

You may want to check your server. Unless it blocks traffic from Safari iOS, there is no reason it should not work.

My server is also a Xojo app, running on Mac OS. I added some debugging to the server, and it appears the image is indeed being sent to my iOS application. It looks like the HTMLviewer is just not rendering it.

I have a different route to follow now to find out why it is not being rendered.

Thank you for the confirmation this should be working.

[quote=166152:@David Andrews]My server is also a Xojo app, running on Mac OS. I added some debugging to the server, and it appears the image is indeed being sent to my iOS application. It looks like the HTMLviewer is just not rendering it.

I have a different route to follow now to find out why it is not being rendered.

Thank you for the confirmation this should be working.[/quote]

No. The problem does not come from the iOS browser. What you are doing is simply not right. Images are not accessed that way. A web app is not a web site.

What you could do is use a parameter, such as http://192.168.1.72:8080?pic=myimage.jpg, then in Session Open look at URLparameter to showURL a webfile pointing to your image file.

This appears to be a memory related bug. Not sure if it is an iOS simulator bug, or Xojo bug.
My iOS app passes my MacOS X app an image request, tagged with metadata, in the form of a URL, kinda dirty but works for my needs. It simply tags the image with 2 characters, those characters represent the image quality and image size being requested(poor, low, medium, high/tiny, small, medium, large). My largest resolution image is 1920x1920. When I load this in to my iOS app, it doesn’t display the image, though it does scale the view to the correct size for the image. If I try to drag the HTMLViewer around it crashes my iOS app. If I load a larger (physical file size) image it displays just fine, so it appears to be the image dimensions that cause the crash.

[quote]Feb 9 14:34:37 fa00463 com.apple.CoreSimulator.SimDevice.6F8A9ED4-4D3A-4798-A143-8C6A3C50C9D0.launchd_sim[2753] (com.apple.imfoundation.IMRemoteURLConnectionAgent): The _DirtyJetsamMemoryLimit key is not available on this platform.
Feb 9 14:34:37 fa00463 com.apple.CoreSimulator.SimDevice.6F8A9ED4-4D3A-4798-A143-8C6A3C50C9D0.launchd_sim[2753] (UIKitApplication:com.brinscall.myapp[0x4704][2825]): Service exited due to signal: Illegal instruction: 4[/quote]

I use the same approach in Xcode and it works OK.

This is not a web app at all. It is custom code that listens on port 8999. It receives HTTP requests and parses them. Some requests are passed to hardware to operate my electric gates, some are executed as commands that connect to MFi devices to turn on lights, others are processed as requests to different IP cameras to return a static image at the size and resolution of my choosing