-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Mac Catalyst] Application.Current.OpenWindow not working #10603
Comments
Confirmed that this is no longer an issue once I remembered to add the SceneDelegate/Info.plist config. |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
I was hoping to make this all work by default, but will need to wait for this: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1641233/ |
any updates on this? Multi-Window doesn't work for me on macOS |
Hi @nor0x It works on my machine - check out https://github.com/davidbritch/dotnet-maui-issues/tree/main/WindowSizeDemo. You have to add SceneDelegate.cs and configure Info.plist to make it work on Mac Catalyst. @mattleibow Personally I'd close this issue, or rename it at least. |
thanks for the reply @davidbritch - turns out it was a typo in my plist file. Everything good now 🥳 |
If anyone hits this issue on Mac Catalyst, then I recommend to read https://learn.microsoft.com/en-gb/dotnet/maui/fundamentals/windows?view=net-maui-7.0#ipados-and-macos-configuration. This issue was very helpful in discovering the root problem. Plus, https://github.com/davidbritch/dotnet-maui-issues/blob/f8a21f5735c6cafe6266449f83905725de520b70/WindowSizeDemo/WindowSizeDemo/Platforms/MacCatalyst/Info.plist#L29-L45 this is how to add it correctly to your |
Hi @davidbritch. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version. You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
Verified this issue with VS for Mac 17.6.0.1575. Not repro on macOS with sample project. WindowSizeDemo |
Description
Application.Current.OpenWindow(new Window(new MainPage()));
works fine on Windows, in .NET 7 RC1, but does nothing on Mac Catalyst. Similarly,Application.Current.CloseWindow(Window);
works fine on Windows, but does nothing on Mac Catalyst.No exceptions. No errors. No new window.
Steps to Reproduce
Link to public reproduction project repository
https://github.com/davidbritch/dotnet-maui-issues/tree/main/WindowSizeDemo
Version with bug
.NET 7 RC1.
Last version that worked well
Unknown/Other
Affected platforms
macOS
Affected platform versions
N/A
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: