Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

[Bug] iOS: Launcher.OpenAsync() Bugs out #1592

Closed
Edgaras91 opened this issue Dec 16, 2020 · 4 comments
Closed

[Bug] iOS: Launcher.OpenAsync() Bugs out #1592

Edgaras91 opened this issue Dec 16, 2020 · 4 comments
Labels
bug Something isn't working
Milestone

Comments

@Edgaras91
Copy link

Description

Using Xamarin.Forms, iOS device OpenAsync overlay that appears in iPhone bugs out.
Other apps do below without any issues.
File is .xlsx format.

Steps to Reproduce

  1. Save file to iPhone using this:
            string path = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
            string filePath = Path.Combine(path, filename.xlsx);
            try
            {
                FileStream fileStream = File.Open(filePath, FileMode.Create);
                fileStream.Write(bytes);
                fileStream.Flush();
                fileStream.Close();
            }
  1. Open File:
    await Launcher.OpenAsync(new OpenFileRequest { File = new ReadOnlyFile(filePath) });
  2. Select "Save to Files"
  3. Press Cancel
  4. Select "Save to Files" again
  5. It will bug out - not go in to "Save to Files", screen flash and stay where it is

Expected Behavior

To be able to "Save to Files" when you go back and forth in the menu.

Actual Behavior

Not able to "Save to Files" on 2nd attempt in the same overlay session

Basic Information

  • Version with issue:

  • Last known good version:

  • IDE: VS2019

  • Platform Target Frameworks:

    • iOS: 14.2
    • Android: 11.0 (N/A)
  • Nuget Packages:
    Xamarin.Essentials. 1.6.0-pre2
    Xamarin.Forms 4.8.0.1687

  • Affected Devices:
    Simulator and Physical, both iPhone 12 Pro Max (iOS 14.2)

Screenshots

image

@Edgaras91 Edgaras91 added the bug Something isn't working label Dec 16, 2020
@dimonovdd
Copy link
Contributor

I also encountered this problem

File is .xlsx format.

this applies to files with different extensions

@dimonovdd
Copy link
Contributor

this correctly work on iPhone 7 Plus with iOS 13.5

@mattleibow mattleibow added this to the 1.6.1 milestone Dec 26, 2020
@dimonovdd
Copy link
Contributor

dimonovdd commented Dec 26, 2020

@mattleibow I noticed that it works on ios 14, but the opening "save to files" dialog takes a very long time. But the second and next times the opening is fast.
it works faster on ios 13.

Videos:

  1. iOS 13.6
  2. iOS 14.3

I've also made some minor changes to the code and I think it's working faster
link

@mattleibow
Copy link
Contributor

Thanks for the PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants