question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NotificationCenter.CreateNotificationChannel() not found on v6.0.0

See original GitHub issue

Using 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:closed
  • Created 2 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
marcominervacommented, May 27, 2021

I think the problem is this:

image

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.

0reactions
jamsoftcommented, Jun 25, 2021

Hmm … I cannot get this to compile at all. Even when targetting Android 11.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found