Minify removes the code related to Mobile Notification Package

When I select the Grandle option under the Minify setting in the Player Settings, it removes the code related to Mobile Notification Package. This is the logcat related to the error:

If set Minify to None, everything starts working.

Hey Steve,

Could you submit a bug report via the editor, including as much information as possible about the issue at hand (steps to reproduce the issue, project that’s reproducing the issue)?
Please post the ticket number here. It does seem like an issue that needs attention

I am also getting this issue, in my case im just doing the same thing as the Mobile notification example in the documentation, my project builds for Android and i’m Minifying with Proguard.

@afmj could you provide me your used notification package version? I’ll try reproducing the issue

Has there been a solution for this? I’m experiencing the same issue.

Try to add this to the proguard-user.txt file:

-keep class com.unity.androidnotifications.** { *;}
-keepclassmembers class com.unity.androidnotifications.** { *;}
-keepnames class com.unity.androidnotifications.** { *;}
-keepclassmembernames class com.unity.androidnotifications.** { *;}
1 Like