Unity.Notifications namespace missing

I installed the mobile notifications package but its just not recognizing the namespace.
I tried closing and reopening unity and reinstalling the package but it just says it doesn’t exist.

The type or namespace name ‘Notifications’ does not exist in the namespace ‘Unity’ (are you missing an assembly reference?)

Any idea on how to fix this?

First thing to check: Do you have the Build settings set up to use the mobile device as the target platform? For example, if you havent’ set the build settings to Android, then Unity.Notificaitons.Android simply will not exist within your project.

Next question: If you use the code exactly as it is in Nathan’s example (copy it from the git), even though Visual Studio Code might complain, does it thrown an error in Unity?

Ok I managed to fix this
I went to edit->preferences->external-> regenerate project files

Now everything is good

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms