Closed juliocbcotta closed 6 months ago
Hi @juliocbcotta, we're looking into this. Do you call registerNetworkCallback
on ConnectivityManager
anywhere in your app code, or do you use WorkManager with jobs that require network access?
Not that I am aware of, but some other library may do the same, right ?
@juliocbcotta Yes, there's a limit of 100 active network callbacks, per-app, and it seems likely that another library may be using up all of the available requests before we're able to register our listener.
I've checked the few spots where we're doing that and I'm not seeing a path through the code that would cause our SDK to repeatedly register the network callback. If you don't mind sharing the dependencies section from your build.gradle
, I could take a look to see which ones may be registering network callbacks. If you'd rather not post that in a public space, my email is {first}.{last}@airship.com
(using the name in my github profile for the first and last).
Closing this due to lack of updates. Please feel free to re-open if you'd like me to take a look at your dependencies.
Preliminary Info
We got this crash from crashlytics
What Airship dependencies are you using?
airship = "17.7.1"
airship = { module = "com.urbanairship.android:urbanairship-fcm", version.ref = "airship" } airship_automation = { module = "com.urbanairship.android:urbanairship-automation", version.ref = "airship" }
Report
What unexpected behavior are you seeing?
What is the expected behavior?
Not crashing
What are the steps to reproduce the unexpected behavior?
We don't know how to reproduce.