Firemonkey open local file iOS by default application


Delphi 10.4.1
iOS 14.2
I have found different sources, but they do not work. Like this:
URL : NSUrl;
URL := TNSURL.Wrap(TNSURL.OCClass.fileURLWithPath(StrToNSStr( ExtractFileName(AFileName) )));
if SharedApplication.canOpenURL(URL) then

URL have a valid data like: file:///var/ …… and i can open it by
WebBrowser1.Navigate( NSUrlToStr(URL) );

but SharedApplication.openURL(URL); do nothing.
May be some true work example with TUIDocumentInteractionController ?
Any complete working example?

File exist.
I need write some to info.plist.TemplateiOS.xml ?
I need open it in default application (file can be .doc, .jpg, .pdf, etc)

Comments are closed.