So in the Android developer Docs (https://developer.android.com/training/notify-user/build-notification) it gives this line to create a notification channel:
NotificationManager notificationManager = getSystemService(NotificationManager.class);
But with the exact code block copied I get the error:
cannot find symbol method getSystemService(Class<NotificationManager>)
I think that's a method but wasn't called from it's class (Context)? But then why is in the docs? What should I put instead?