On Android, I’m utilizing the LocalNotifications API in an Ionic project with Capacitor. So the user can respond directly to a notification, I’ve added some action types to the payload like this:
LocalNotifications.registerActionTypes({
types: [
{
id: "workout-1",
actions: [
{
id: ":+1:",
title: "👍",
destructive: true,
},
{
id: ":muscle:",
title: "💪",
destructive: true,
},
{
id: "free_text",
title: "Respond",
input: true,
},
],
},
This enables the message to render like this:
However, even when tapping one of emojis, it opens the app. All I’d like it to do is trigger action performed on the emoji that was tapped.
Note that it triggers the correct action based on the tap, I just don’t want it to actually open the app.
It works this way on iOS. Any ideas?