You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a users internet connection is offline Adapty SDK is making repeated calls to the https://api.adapty.io/api/v1/sdk/events/blacklist/ endpoint on launch, causing EventManager.trackEvent to peg the CPU.
We initialise Adapty in our UIApplicationDelegate's func application(_ application:, didFinishLaunchingWithOptions launchOptions:) like so:
Adapty.activate("X", observerMode: true)
This is the only call made to Adapty before the requests start. To replicate this you can follow the following steps:
Turn on Airplane mode
Start an application that makes use of the Adapty iOS SDK
Ideally a failure to fetch the events/blacklist would result in an exponential backoff, rather than repeated re-attempts.
Task <AB7BCD97-98C1-45DB-9F83-88EDF1382F13>.<4920> finished with error [-1009]
Error Domain=NSURLErrorDomain Code=-1009 "The internet connection appears to be offline."
UserInfo={_kCFStreamErrorCodeKey=50, NSUnderlyingError=0x280b573f0
{Error Domain=kCFErrorDomainCFNetwork Code=-1009 "(null)" UserInfo={_kCFStreamErrorDomainKey=1,
_kCFStreamErrorCodeKey=50, _NSURLErrorNWResolutionReportKey=Resolved 0 endpoints in 0ms
using unknown from cache, _NSURLErrorNWPathKey=unsatisfied (No network route)}},
_NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <AB7BCD97-98C1-45DB-9F83-88EDF1382F13>.<4920>,
_NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <AB7BCD97-98C1-45DB-9F83-88EDF1382F13>.<4920>"
), NSLocalizedDescription=The internet connection appears to be offline.,
NSErrorFailingURLStringKey=https://api.adapty.io/api/v1/sdk/events/blacklist/,
NSErrorFailingURLKey=https://api.adapty.io/api/v1/sdk/events/blacklist/, _kCFStreamErrorDomainKey=1}
Connection 4943: received failure notification
Connection 4943: failed to connect 1:50, reason -1
Connection 4943: encountered error(1:50)
The text was updated successfully, but these errors were encountered:
When a users internet connection is offline Adapty SDK is making repeated calls to the
https://api.adapty.io/api/v1/sdk/events/blacklist/
endpoint on launch, causingEventManager.trackEvent
to peg the CPU.We initialise Adapty in our
UIApplicationDelegate
'sfunc application(_ application:, didFinishLaunchingWithOptions launchOptions:)
like so:This is the only call made to Adapty before the requests start. To replicate this you can follow the following steps:
Ideally a failure to fetch the events/blacklist would result in an exponential backoff, rather than repeated re-attempts.
The text was updated successfully, but these errors were encountered: