Android/cronet + NativeAdapter = "Too many receivers, total of 1000, registered" #2300
Labels
h: need extra help
Extra help is needed
p: native_dio_adapter
Targeting `native_dio_adapter` package
platform: io
s: bug
Something isn't working
Package
native_dio_adapter
Version
1.3.0
Operating-System
Android
Adapter
NativeAdapter
Output of
flutter doctor -v
Dart Version
3.5.2
Steps to Reproduce
When using a map tiler (flutter map) with many tile layers, a limit is reached regarding "Broadcast Receivers" for Android when using NativeAdapter().
"Too many receivers, total of 1000, registered"
So I guess to reproduce, just request too many files over a network in a short period.
Expected Result
All network requests should be honored when using the NativeAdapter packge.
NOTE: if I do NOT use NativeAdapter, and just http, everything works fine for Android. However, the network requests are not as fast as with cronet, so I would rather have NativeAdapter adjusted to allow for > 1000. Or, if you could provide me with a method to "Unregister" or prevent these receivers, that would be great!
Actual Result
The text was updated successfully, but these errors were encountered: