Android 通知在 Unity 中不可点击

问题描述 投票:0回答:1

我们在unity中面临的一个问题是,当点击android中的预定通知时。应用程序打不开。

我们在应用程序中有 firebase 消息传递,因此它使用活动“com.google.firebase.MessagingUnityPlayerActivity”。

当出现预定通知并且我们单击它们时,它会尝试打开“com.unityplayer.UnityActivity”而不是“com.google.firebase.MessagingUnityPlayerActivity”,这可能会导致应用程序无法打开。

但是,当应用程序已经打开时出现预定通知时,我们杀死该应用程序并单击该通知,它会完美地尝试打开活动“com.google.firebase.MessagingUnityPlayerActivity”,并且应用程序也会完美打开。

你们中的任何人是否知道如何解决此问题或解决此问题的方法。或者这是 Firebase sdk 本身的问题。请分享您的想法。

Unity 2020.3.41f1 Firebase 云消息传递:10.0.1

我尝试从移动通知更改活动名称,但没有成功。

unity-game-engine android-notifications android-notification-action
1个回答
0
投票

启用在移动通知中使用自定义活动并使用此 check this imagecom.google.firebase.MessagingUnityPlayerActivity

© www.soinside.com 2019 - 2024. All rights reserved.