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]: TooManyRequestsException in ConnectivityManager.registerNetworkCallback Causes App Crash #1714

Open
3 tasks done
ALI-M0vS5a opened this issue Dec 7, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ALI-M0vS5a
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Is there a StackOverflow question about this issue?

  • I have searched StackOverflow

What happened?

The app crashes with the following exception when using ConnectivityManager.registerNetworkCallback. This occurs because multiple network callbacks are registered without proper cleanup or throttling, leading to a TooManyRequestsException.

This issue is commonly discussed on platforms like Stack Overflow. A related thread that might provide helpful insights is [Compose TooManyRequestsException when there is not more than one callback registered].https://stackoverflow.com/questions/77493004/compose-toomanyrequestsexception-when-this-is-not-more-than-1-callback-registere

Relevant logcat output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@ALI-M0vS5a ALI-M0vS5a added the bug Something isn't working label Dec 7, 2024
@ALI-M0vS5a
Copy link
Author

This crash occurred in my app where I implemented the same ConnectivityManagerNetworkMonitor logic and approach used in the Now in Android project. Since the code and methodology are identical, it is highly likely that this issue could also occur in the Now in Android project under similar conditions.

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

1 participant