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

Notification might be skipped if app keeps working in the background #636

Open
danielgranhao opened this issue Dec 31, 2024 · 1 comment · May be fixed by #697
Open

Notification might be skipped if app keeps working in the background #636

danielgranhao opened this issue Dec 31, 2024 · 1 comment · May be fixed by #697
Assignees
Milestone

Comments

@danielgranhao
Copy link
Contributor

There is no evidence this has happened in practice, but as @roeierez theorized here, it might be possible for the notification plugins to skip notifications if the app runs simultaneously in the background.

The notification plugins wait for some events issued by the SDK. If the app is running in the background, 2 SDK instances will run in parallel, and it's possible only a single one will emit the event. Let's investigate if this is indeed a potential issue and if so, decide how to fix it.

@danielgranhao
Copy link
Contributor Author

The issue described above is unlikely because a backgrounded app is quickly throttled or even stopped. Despite that, assuming the SDK instance from a background app can process some update and issue an event accordingly, the SDK instance from a notification handler will effectively miss it.

I'll shortly open a PR that prevents this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants