AnsweredAssumed Answered

Open File in External App on iOS

Question asked by on Mar 13, 2019
Latest reply on Mar 20, 2019 by

I am trying to open a file in an external app on iOS but it's not working. I am using the Qt.openUrlExternally() function but I am getting errors that look like this:

This plugin does not support QPlatformServices::openDocument() for 'file:///private/var/mobile/Containers/Data/Application/F343D1DB-5FBC-488C-919A-6A6893944420/tmp/captureTest.jpg'.

The files can be of any type (.png, .jpg, .docx, .pdf, etc) and I have verified that they exist on the file system prior to running Qt.openUrlExternally(). My code works fine on Windows and only fails on iOS. I found this bug report for Qt: [QTBUG-42942] iOS: Implement QPlatformService::openDocument() - Qt Bug Tracker  

Based on that it appears that I need to write some C++ or native code to use the openDocument() function, which must be what Qt.openUrlExternally() calls to open things. However, since I am using AppStudio I can't take that approach. Is there an AppStudio workaround for this issue?