-
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
UseLocalNotification is not defined if TFM is net7.0 #343
Comments
Hey @tranb3r can you attach a sample project? |
Here is a repro. |
@tranb3r Can you make it downloadable zip. Otherwise, I have to download the whole repo. |
@tranb3r also try referencing Plugin.LocalNotification in Maui App |
Hi @thudugala |
@tranb3r Try version 10.1.2 |
After upgrading to this version, regular MAUI app gives exception: |
@7702244 Do you only have net7.0-android and net7.0-ios as TargetFrameworks? |
I target net7.0-android net7.0-ios net7.0-maccatalyst |
Is there an option to just not activate the library for Mac, because I want to use the application for this platform? |
It works. Thank you! |
I'm referencing Plugin.LocalNotification in a library built only for net7.0 (no platform specific code).
Of course this library is then referenced in a Maui App (net7.0-android and net7.0-ios).
When building the lib, I've got an error, because UseLocalNotification is not defined for TFM net7.0.
Plugin.LocalNotification/Source/Plugin.LocalNotification/LocalNotificationExtensions.cs
Line 17 in 1f34082
Could you please fix this issue and make sure we can reference this package in a net7.0 lib and call the mauiAppBuilder initialisation from this lib ?
Thanks.
The text was updated successfully, but these errors were encountered: