Skip to content
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

[BUG] Application crashes under Windows when running in desktop mode #1649

Closed
2 tasks done
pgrawehr opened this issue Jan 18, 2024 · 1 comment · Fixed by #1658
Closed
2 tasks done

[BUG] Application crashes under Windows when running in desktop mode #1649

pgrawehr opened this issue Jan 18, 2024 · 1 comment · Fixed by #1658
Assignees
Labels
area/core Issue/Discussion/PR that has to do with the core of the toolkit bug Something isn't working unverified

Comments

@pgrawehr
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

Open the CommunityToolkit.Samples solution and add this line to the csproj to run in Windows desktop mode (not in store mode):

<WindowsPackageType Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">None</WindowsPackageType>

also change the commandName in launchsettings.json to "Project". Then run the project and try out the "Snackbar" and "ToastBar" examples.

The application crashes with some low-level error.

Expected Behavior

A notification window is shown

Steps To Reproduce

See above

Link to public reproduction project repository

https://github.com/CommunityToolkit/Maui/

Environment

- .NET MAUI CommunityToolkit: Latest
- OS: Windows 10
- .NET MAUI: 8.0

Anything else?

When running as store app, everything works as expected.

@pgrawehr pgrawehr added bug Something isn't working unverified labels Jan 18, 2024
@vhugogarcia vhugogarcia added the area/core Issue/Discussion/PR that has to do with the core of the toolkit label Jan 19, 2024
@VladislavAntonyuk
Copy link
Collaborator

Snackbar uses ToastNotificationManager, which is Obsolete on Windows and replaced by AppNotification. However, AppNotification is not displayed in Desktop mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core Issue/Discussion/PR that has to do with the core of the toolkit bug Something isn't working unverified
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants