Symptoms:
- When enabling Minify on your project push notifications causes errors warning missing dlls
Resolution:
You can force certain classes to be kept by Proguard
To enable a custom proguard in Unity editor go to:
EDIT > PROJECT SETTINGS > PLAYER > PUBLISH SETTINGS > BUILD > CUSTOM PROGUARD FILE
Open the file created under the path specified for your Custom Proguard file and append the following line
-keep class com.unity.services.pushnotifications** { *;}