-
Notifications
You must be signed in to change notification settings - Fork 68
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
Notifications have weird app name and possibly other issues when app is packaged as msix #118
Comments
It looks like the string that is there in place of app name is actually the AUMID of the app. |
@azchohfi would you have any pointers on why this issue is happening ? |
@andrewleader could you please advise on what can possibly be happening here? |
Ok, I've spoken with @andrewleader, and he told me that the reason this is likely happening is because both libs are using the ToastNotificationManager.CreateToastNotifier with the AUMID, and not the version without parameters of this method, which is what should be used with packaged apps (in the vast majority of cases). The Windows Community Toolkit implements the required logic to detect if an app is packaged or unpackaged, to call the proper API (but it is all C#, not C++): https://github.com/CommunityToolkit/WindowsCommunityToolkit/blob/3bf88b8e6ea1e30b4bb027d3128345446aea141e/Microsoft.Toolkit.Uwp.Notifications/Toasts/Compat/Desktop/DesktopBridgeHelpers.cs On Andrew's words: I hope this helps. To summarize, the issue opened here is not an issue on @YehudaKremer's MSIX package, but a misunderstanding of the respective APIs that each of the reported libraries are calling. |
Hey @azchohfi , |
duplicate #136 |
ℹ️ Info
Version:
v3.4.0
💬 App name on notifications from msix packaged version is incorrect
The name of the app on notifications seems to be some combination of app identifier, publisher name and some random code,
this happens with both win_toast MixinNetwork/flutter-plugins#64
as well as WIP Windows support of flutter_local_notifications
Initially I thought
win_toast
isn't working because its meant for Win32 apps and not msix packaged apps but looks like that's not the case since the same thing happens withflutter_local_notifications
' WIP implementation too.My msix config is:
📜 Pubspec.yaml
The text was updated successfully, but these errors were encountered: