If a WiseJ site is run as a “add to homescreen” iOS app, when I serve a PDF I cannot get it to launch in the Safari external browser. As a result, the PDF shows, but there is no navigation back (because it is full screen), and the app must be manually closed and restarted.
I tried using the DownloadAndOpen() function, specifying “_blank” (no go, but does display a pop-up warning) and “_system”, which is supposed to launch in the system external browser.
Does DownloadAndOpen(target As String, stream As Stream, fileName As String) supposed the “_system” target?
thank you
Andrew
‘
‘ Summary:
‘ Downloads the bytes in the stream to the client.
‘
‘ Parameters:
‘ target:
‘ Specifies where to open the file. Leave empty or use “_self” to open in the current
‘ tab, _blank to open in a new tab.
‘
‘ stream:
‘ The stream to send to the client.
‘
‘ fileName:
‘ The file name the client will use to save the stream.
Public Shared Sub DownloadAndOpen(target As String, stream As Stream, fileName As String)
The target name can be anything and it’s entirely up to the browser. Wisej simply passes it to window.open(url, target);
Please login first to submit.