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

[Question] Unregistering service when app crushes or when a user terminated app in force. #56

Closed
DaeHyeonNam opened this issue Dec 19, 2023 · 2 comments

Comments

@DaeHyeonNam
Copy link

Description

I am showing the list of registered services using discovery.
However, I can see some of fake registered services that are not properly unregistered bcs of app crush or user force temination.
Is there a proper way to clean up those unregistered services?

Scenario

Use the plugin in my own application via Flutter dependency

Platform

None

@sebastianhaberey
Copy link
Owner

I had the same question some time ago. Unfortunately executing code on forced termination is not supported by the Flutter platform and there are apparently no plans by the Flutter team to introduce this.

You'll have to rely on DNS time-outs and connection attempts to filter out stale services.

@sebastianhaberey sebastianhaberey closed this as not planned Won't fix, can't repro, duplicate, stale Dec 19, 2023
@DaeHyeonNam
Copy link
Author

Is there any way to set the DNS time-out duration or connection attempts??

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

No branches or pull requests

2 participants