Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Clicking Notification does not bring App in Foreground #1560

Open
marcohald opened this issue Jan 24, 2025 · 2 comments
Open

[Bug]: Clicking Notification does not bring App in Foreground #1560

marcohald opened this issue Jan 24, 2025 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@marcohald
Copy link

marcohald commented Jan 24, 2025

Can you reproduce this bug in the PWA?

No

Describe the bug

When clicking on a Notification the app is not brought to the foreground

What package are you using?

deb

Version

1.12.6

Reproduction steps

1. Teams for Linux running in the background (not minimized)
2. Receive Message
3. Click on the Notification Popup
4. Nothing happens

Expected Behavior

1. Teams for Linux is brought to the Foreground

Debug

teams-for-linux --webDebug --logConfig='{}'
all good with appLogLevels you aren't using them
Initialising logger with config: "{}"
08:42:45.289 › File logging at /home/$USER/.config/teams-for-linux/logs/main.log with level silly
08:42:45.290 › Console logging enabled with level silly
08:42:45.290 › Logger initialised
08:42:45.291 › configPath: /home/$USER/.config/teams-for-linux
08:42:45.291 › configFile: { disableNotificationWindowFlash: true }
08:42:45.468 › processArgs: [
  '/opt/teams-for-linux/teams-for-linux',
  '--webDebug',
  '--logConfig={}'
]
08:42:45.469 › testing RegExp processArgs false
08:42:45.469 › testing RegExp processArgs false
08:42:45.469 › testing RegExp processArgs false
08:42:45.469 › Waiting for network...
08:42:45.470 › Testing network using net.request() for https://teams.microsoft.com
08:42:45.472 › Spellchecker is disabled!
[9016:0124/084245.696874:ERROR:nss_util.cc(345)] After loading Root Certs, loaded==false: NSS error code: -8018
08:42:45.750 › Network test successful with method https
08:42:46.147 › GetSystemIdleState => IdleTimeout: 300s, IdleTimeoutPollInterval: 10s, ActiveCheckPollInterval: 2s, IdleTime: 0s, IdleState: 'active'
08:42:46.658 › did-frame-finish-load {} true
08:42:46.659 › did-finish-load
08:42:47.541 › cookie changed cause: overwrite 
 removed?: true 

08:42:47.541 › cookie: authtoken 
 expirationDate: 1737715618.312722 
 domain: teams.microsoft.com
08:42:47.542 › cookie changed cause: explicit 
 removed?: false 

08:42:47.543 › cookie: authtoken 
 expirationDate: 1737715618.540634 
 domain: teams.microsoft.com
08:42:47.756 › Badge count set to '0'
08:42:47.769 › Badge count set to '0'
08:42:48.460 › Badge count set to '0'
08:42:50.815 › did-frame-finish-load {} false
08:42:56.204 › GetSystemIdleState => IdleTimeout: 300s, IdleTimeoutPollInterval: 10s, ActiveCheckPollInterval: 2s, IdleTime: 2s, IdleState: 'active'
08:43:06.218 › GetSystemIdleState => IdleTimeout: 300s, IdleTimeoutPollInterval: 10s, ActiveCheckPollInterval: 2s, IdleTime: 0s, IdleState: 'active'
.........
.........
09:04:36.703 › GetSystemIdleState => IdleTimeout: 300s, IdleTimeoutPollInterval: 10s, ActiveCheckPollInterval: 2s, IdleTime: 0s, IdleState: 'active'
09:04:46.708 › GetSystemIdleState => IdleTimeout: 300s, IdleTimeoutPollInterval: 10s, ActiveCheckPollInterval: 2s, IdleTime: 0s, IdleState: 'active'
09:04:51.760 › Notification => Type: new-message, Audio: default, Title: xyz hat eine neue Nachricht gepostet, Body: zxy
09:04:51.760 › Playing file: /opt/teams-for-linux/resources/assets/sounds/new_message.wav
09:04:51.812 › Badge count set to '2'
09:04:54.695 › Badge count set to '2'
09:04:54.964 › Badge count set to '2'
09:04:55.083 › Badge count set to '2'
09:04:56.087 › Badge count set to '1'
09:04:56.713 › GetSystemIdleState => IdleTimeout: 300s, IdleTimeoutPollInterval: 10s, ActiveCheckPollInterval: 2s, IdleTime: 0s, IdleState: 'active'
09:05:06.718 › GetSystemIdleState => IdleTimeout: 300s, IdleTimeoutPollInterval: 10s, ActiveCheckPollInterval: 2s, IdleTime: 0s, IdleState: 'active'

Additional context

When manually bringing Teams for Linux in Foreground, the Chat is switched to the one from the Notification

cat /etc/os-release 
PRETTY_NAME="Ubuntu 24.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.1 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo
@marcohald marcohald added the bug Something isn't working label Jan 24, 2025
@IsmaelMartinez
Copy link
Owner

Hi @marcohald , thanks for reporting.

Can you check if the app is brought to the foreground if it is minimised when you click on the notification?

There are some caveats/limitations on using electron to wrap the web app, meaning we can't easily move to the exact message/notification, but the app should be shown. Maybe is not detecting that is out of focus.

@marcohald
Copy link
Author

Hi @IsmaelMartinez , it makes no difference if minimized or not.
The Application is not brought to front.
I'm using Ubuntu Mate as Desktop Environment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants