Added “inForeground” key to identify push click from foreground