I encountered a compilation error while building my Flutter application for Windows using the version 1.2.0. The error occurs when using the flutter_windows_notification plugin. Below are the details of the error messages:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\cppwinrt\winrt/base.h(6508,17): error C2220: the following warning is treated as an error [C:\Users\eric\git\prostoreapp\build\windows\x64\plugins\windows_notification\windows_notification_plugin.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\cppwinrt\winrt/base.h(6508,17): warning C5205: deleting an abstract class 'winrt::impl::implements_delegate<winrt::Windows::UI::Core::DispatchedHandler,H>' which has a non-virtual destructor results in undefined behavior [C:\Users\eric\git\prostoreapp\build\windows\x64\plugins\windows_notification\windows_notification_plugin.vcxproj]
C:\Users\eric\git\prostoreapp\windows\flutter\ephemeral\.plugin_symlinks\windows_notification\windows\windows_notification_plugin.cpp(279,42): error C2039: 'UserInput' is not a member of 'winrt::Windows::UI::Notifications::ToastActivatedEventArgs' [C:\Users\eric\git\prostoreapp\build\windows\x64\plugins\windows_notification\windows_notification_plugin.vcxproj]
Error: Build process failed.
Steps to Reproduce
Add the flutter_windows_notification plugin to the pubspec.yaml file.
Build the Flutter application for Windows using flutter build windows.
My configuration
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.22.1, on Microsoft Windows [version 10.0.17763.4974], locale fr-CH)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Build Tools 2019 16.11.36)
[√] Android Studio (version 2023.1)
[√] Connected device (3 available)
[√] Network resources
It appears that there are issues related to the winrt base header and the ToastActivatedEventArgs class, which may have changes or deprecated members.
Please provide guidance on how to resolve these compilation errors.
Thank you.
I encountered a compilation error while building my Flutter application for Windows using the version 1.2.0. The error occurs when using the flutter_windows_notification plugin. Below are the details of the error messages:
Steps to Reproduce
Add the flutter_windows_notification plugin to the pubspec.yaml file.
Build the Flutter application for Windows using flutter build windows.
My configuration
It appears that there are issues related to the winrt base header and the ToastActivatedEventArgs class, which may have changes or deprecated members.
Please provide guidance on how to resolve these compilation errors.
Thank you.