opening downloaded file in ios app won't show back button to the original view

Ashley Baldwin 1 Reputation point
2021-03-10T17:45:23.107+00:00

I have built a Xamarin Forms web wrapper, and upon downloading files in the web view it opens the downloaded document up in the app, however no back or close button is present in order to go back to the web view in the app,

I have also tried passing the url of the file to a new navigation page by PushAsync method so that i can utilize the back button on that page, however it then will not open the document up in this view.

Developer technologies | .NET | Xamarin
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Cole Xia (Shanghai Wicresoft Co,.Ltd.) 6,756 Reputation points
    2021-03-11T07:05:38.927+00:00

    Hello,

    Welcome to Microsoft Q&A!

    Try to use Xamarin.Essentials: Launcher , but note : this plugin is to request other apps to open and view the file .

    If you want to preview the file inside your app , create dependency service and use UIDocumentInteractionController or QLPreviewController ,refer to sample here : https://github.com/jimmgarrido/document-interaction-sample .


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.