NotificationCenter.CreateNotificationChannel() not found on v6.0.0
See original GitHub issueUsing Xamarin.Forms v5.0.0.2012, If I add the version 5.2.0 of the package (on all projects of course), I can add this line in the MainActivity.cs of the Android project (API level 29) as stated in the documentation:
NotificationCenter.CreateNotificationChannel();
If, however, I update the library to v6.0.0, I obtain the error “‘NotificationCenter’ does not contain a definition for ‘CreateNotificationChannel’”
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Cannot find method createNotificationChannel ...
1 Answer 1 ... There is no createNotificationChannel() method on NotificationManagerCompat . You have to use the native NotificationManager for ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think the problem is this:
This version requires Android v11, while my application uses the v10. Moreover, the .NET Standard version is 2.1, while the Xamarin.Forms project uses v2.0.
Hmm … I cannot get this to compile at all. Even when targetting Android 11.