Unity-Technologies / com.unity.mobile.notifications

Mobile Notifications Package
https://docs.unity3d.com/Packages/com.unity.mobile.notifications@2.1/manual/index.html
Other
131 stars 42 forks source link

I still get the "NotSupportedException" error when I build my project for android #222

Closed 452283662 closed 2 years ago

452283662 commented 2 years ago

The plugin version I am using is 2.0.2, Unity version 2020.3.38f1

I see "Fix unguarded API usage from level 23" in the change log. And I see in the UnityNotificationManager.java script, that the getActiveNotifications call has been protected. Does this mean that this plugin package already supports Android API Level 23 and below. But then I get NotSupportedException error when I build my project. This makes me a bit confused. My project is set to API Level 19. I don't want to set my project to API Level 23 easily, so I'm asking here. Is this error a false alarm?

image

aurimasc commented 2 years ago

For 2.0.2 version minimum required API level is 21. If you want to target lower, use version 1.4.3.