- Home /
Unity Notification doesn't open application
Hello, I implemented Unity Mobile Notifications 2.0.1 sample in my project (with minimal changes). When I create new notification on android there is no errors in logs. It comes up with all info that I set before. But when I click on it there is nothing happening, app not opening. In android studio I see such information:
022-05-09 14:05:27.691 2161-2161/? I/NotificationClickHandler: NotificationClicker onClick notification key=0|com.testapp.battle|-1|null|10220 afterKeyguardGone:true
2022-05-09 14:05:27.696 1607-3386/? W/ActivityTaskManager: aInfo is null for resolve intent: Intent { flg=0x30000000 cmp=com.testapp.battle/com.unity3d.player.UnityPlayerActivity (has extras) }
2022-05-09 14:05:27.696 1607-3386/? W/ActivityTaskManagerServiceInjector: Intent or aInfo is null!
2022-05-09 14:05:27.696 1607-3386/? I/ActivityTaskManager: START u0 {flg=0x30000000 cmp=com.testapp.battle/com.unity3d.player.UnityPlayerActivity (has extras)} from uid 10220
2022-05-09 14:05:27.696 2161-2510/? W/NotificationClickHandler: Sending contentIntent failed: android.app.PendingIntent$CanceledException
"onClick notification" shows notification ID -1 instead of normal ID that was set and stored.
Is it possible to find out why android's NotificationClickHandler receive incomplete information? Or maybe someone knows how to fix it?
Best regards
Answer by Hettinger · May 10 at 10:28 AM
Create and modify notification channels (categories) on Android Oreo and above.Preserve notifications when the device restarts.Set custom notification icons. My Apron
Thank you for your feedback. I've already tried set custom channel, icons, intentData. No changes.
Your answer
Follow this Question
Related Questions
How to setup an Android notification at fixed time? 0 Answers
Error when checking if a notification has been delivered 0 Answers
local notifications on Android 0 Answers
How to put a permanent notification on phone? 0 Answers
I need an android app to run in the background to utilize Simple Android Notifications 0 Answers