Node Red notification with action to open app

I’m sending this function to create a notification with an action to open the gmail app, but why does it only open the HA Companion App?

msg.payload = {
    data: {
        "message":"Test",
        "title":"Test",
        "data":
            {
            "actions":
                {
                "action":"URI",
                "uri":"app://com.google.android.gm", 
                "title":"gMail",
                },
            "priority":"high",
            "ttl": 0,
            }
    }
}
return msg;

Also, how do you find the correct uri for an app. I think for gmail it is app://com.google.android.gm but how would I find the URI for say, Blue Iris?

Either look at App Info in your on device settings or in a browser go to the play store listing and the package name will be in the URL

an invalid package name will lead back to the HA app, also this only applies to the action button itself if you selected the notification then you want to adjust clickAction

1 Like

Awesome! This works for Blue Iris:
"clickAction":"app://com.blueirissoftware.blueiris",

But my actions command is not creating a button. Am I missing something?

actions need to be in list format, right now its not formatted properly. I dont use Node Red so cant help there but hopefully that gives you a clue on what to fix :slight_smile:

Thanks. Just needed this:

            "actions":
                [{
                "action":"URI",
                "title":"Email",
                "uri":"app://com.google.android.gm", 
                }],