Closed JabluszkoPL closed 3 years ago
found fix, add to proguard: -keep class com.unity.* { ;} - fixed some other issue not this one
We're also seeing this issue. Please advise
@JabluszkoPL, I am facing the same issue. do you have any workaround for this?
Hi, I previously closed this because I was thinking that Proguard should have
-keep class com.unity.** { *;}
-keep class com.unity.androidnotifications.** { *;}
-keepclassmembers class com.unity.androidnotifications.** { *;}
-keepnames class com.unity.androidnotifications.** { *;}
-keepclassmembernames class com.unity.androidnotifications.** { *;}
I know that guys did update notification package to newest. And I think both of those fixes did help, but I don't have final results because app is still not in store to verify. You can try this and post me if this did help you guys
The issue is not resolved. I've added your fixes @JabluszkoPL
It looks like an error on the new Mobile Notifications package. We could make a temporary fix by using SendNotificationWithExplicitID().
Upgrading Mobile Notifications package to 1.0.4-preview.5 has done the trick for me but it is to be noted that the version is in preview.
The error is also available for 1.3.0 package with proguard activated. Unity 2019.4.10f1.
The lines in the proguard file fix the issue:
The error is also available for 1.3.0 package with proguard activated. Unity 2019.4.10f1.
The lines in the proguard file fix the issue:
-keep class com.unity. { *;} -keep class com.unity.androidnotifications.* { ;} -keepclassmembers class com.unity.androidnotifications. { *;} -keepnames class com.unity.androidnotifications.* { ;} -keepclassmembernames class com.unity.androidnotifications.* { ;}
The error is also available for 1.3.0 package with proguard activated. Unity 2019.4.10f1.
The lines in the proguard file fix the issue:
The error is also available for 1.3.0 package with proguard activated. Unity 2019.4.10f1.
The lines in the proguard file fix the issue:
-keep class com.unity.* { ;} -keep class com.unity.androidnotifications. { ;} -keepclassmembers class com.unity.androidnotifications. { ;} -keepnames class com.unity.androidnotifications. { ;} -keepclassmembernames class com.unity.androidnotifications. { ;}
this proguard syntax is wrong. It's should be :
-keep class com.unity.* { ;} -keep class com.unity.androidnotifications. { ;} -keepclassmembers class com.unity.androidnotifications. { ;} -keepnames class com.unity.androidnotifications. { ;} -keepclassmembernames class com.unity.androidnotifications. { ;}
The error is also available for 1.3.0 package with proguard activated. Unity 2019.4.10f1.
The lines in the proguard file fix the issue:
The error is also available for 1.3.0 package with proguard activated. Unity 2019.4.10f1.
The lines in the proguard file fix the issue:
-keep class com.unity.* { ;} -keep class com.unity.androidnotifications. { ;} -keepclassmembers class com.unity.androidnotifications. { ;} -keepnames class com.unity.androidnotifications. { ;} -keepclassmembernames class com.unity.androidnotifications. { ;}
I am out where I should put those?? pls help
Thanks a loooot it fixed the isue I found the proguard file by searching in my project folder and I added those lines on file named proguard , proguard-unity and in this one proguard-android.txt-3.6.0 i added the lines out of parentheses in the end. Tank You! :) error I was getting before of that
AndroidJavaException: java.lang.NoSuchMethodError: no static method with name='getNotificationManagerImpl' signature='(Landroid.app.Application;Lcom.unity3d.player.UnityPlayerActivity;)Ljava/lang/Object;' in class Lcom.unity.androidnotifications.UnityNotificationManager; java.lang.NoSuchMethodError: no static method with name='getNotificationManagerImpl' signature='(Landroid.app.Application;Lcom.unity3d.player.UnityPlayerActivity;)Ljava/lang/Object;' in class Lcom.unity.androidnotifications.UnityNotificationManager; at com.unity3d.player.ReflectionHelper.getMethodID(Unknown Source) at com.unity3d.player.UnityPlayer.nativeRender(Native Method) at com.unity3d.player.UnityPlayer.access$300(Unknown Source) at com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:154) at com.unity3d.player.UnityPlayer$e.run(Unknown Source) at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in <000000000000000000
That happened to me after I included google adMob
I can confirm that the issue exists in Mobile Notifications 1.4.0, but it can be fixed with
-keep class com.unity.** { *; }
Meanwhile it looks they lied:
Hi, I am using mobile notification and so some phone like SM-N950F (I don't have those devices) my gamie is getting errors:
I added to proguard
but nothing changed. any idea what i need to change?