目录

Preview Fails When the URI Obtained by DocumentViewPicker Is Opened Through the openPreview API

The file URI obtained by DocumentViewPicker has only the temporary permission. This permission cannot be used for preview. As a result, the preview fails. You can grant the permanent permission on the URI and then open the file using the openPreview API. Alternatively, you can copy the file to the app sandbox and preview the file in the sandbox.