Cannot enable notifications for companion

I am currently making an app involving notifications. Unfortunately, I am facing a problem. I am currently on Android 14 and for some reason, I cannot enable notifications for the companion app. I have asked via the app but it instantly gives me a message the request was denied also in the settings the toggle is greyed out and I cannot change it. How do I turn them on? I have tried reinstalling and rebooting my phone.