2025년 10월 23일 목요일

Multiple choices for activity for notifications, set activity explicitly in Notification Settings

Prepare your apps for Google Play’s 16 KB page size compatibility requirement


16 KB 페이지 지원을 위해 Unity 2022 버전으로 업그레이드 후 에러가...


다음과 같은 에러가 발생하면서 다운되기도 하고 그렇지 않기도 하고 증상은 다양한 듯.
 
2025-10-22 22:32:05.608 7645-7702/? E/UnityNotifications: Multiple choices for activity for notifications, set activity explicitly in Notification Settings
2025-10-22 22:32:05.644 7645-7702/? E/Unity: AndroidJavaException: java.lang.RuntimeException: Failed to determine Activity to be opened when tapping notification
    java.lang.RuntimeException: Failed to determine Activity to be opened when tapping notification
        at com.unity.androidnotifications.UnityNotificationManager.initialize(UnityNotificationManager.java:106)
        at com.unity.androidnotifications.UnityNotificationManager.getNotificationManagerImpl(UnityNotificationManager.java:129)
        at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
        at com.unity3d.player.UnityPlayer.-$$Nest$mnativeRender(Unknown Source:0)
        at com.unity3d.player.T0.handleMessage(Unknown Source:122)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:193)
        at com.unity3d.player.U0.run(Unknown Source:24)
      at UnityEngine.AndroidJNISafe.CheckException () [0x00000in <00000000000000000000000000000000>:0 
      at UnityEngine.AndroidJNISafe.CallStaticObjectMethod (System.IntPtr clazz, System.IntPtr methodID, System.Span`1[T] args) [0x00000
cs
 
해결에는 아주 많~~~~은 시간이 걸렸지만 결과적으로 해결 방법은 아주 심플했다.

Edit - Player Settings - Mobile Notifications를 설정해 주면 된다.



댓글 없음:

댓글 쓰기