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
Were you using the this batch API? I would suggest to use the HTTP V2 API which is the endpoint the Swift SDK is using.
Currently we don't support sending events in widget extension. I added a feature request label and put this to our backlog. But we don't have an ETA for this feature due to the high volume of support tickets. We can help to merge in if you have a PR to add this feature.
Hello,
I have an issue with sending events from widget extension.
I've tried following options:
Amplitude.instance(withName: "widgets").uploadEvents()
Provider.getTimeline(...)
Appreciate any help or advice
Expected Behavior
Event should be sent via SDK
Current Behavior
Getting error in console while SDK tries to send event:
ERROR: Connection error:Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo={_kCFStreamErrorCodeKey=57, NSUnderlyingError=0x147f0bf50 {Error Domain=kCFErrorDomainCFNetwork Code=-1005 "(null)" UserInfo={_kCFStreamErrorCodeKey=57, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <E4CEB02E-270B-420A-88F5-82F6A4AB6DFF>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask <E4CEB02E-270B-420A-88F5-82F6A4AB6DFF>.<1>" ), NSLocalizedDescription=The network connection was lost., NSErrorFailingURLStringKey=https://api.amplitude.com/, NSErrorFailingURLKey=https://api.amplitude.com/, _kCFStreamErrorDomainKey=1}
Or with API calls:
Task <5EF7A32F-D407-41BE-A8E4-B38A9CC8A9A0>.<1> finished with error [18 446 744 073 709 550 619] Error Domain=NSURLErrorDomain Code=-997 UserInfo={NSErrorFailingURLStringKey=<private>, NSErrorFailingURLKey=<private>, _NSURLErrorRelatedURLSessionTaskErrorKey=<private>, _NSURLErrorFailingURLSessionTaskErrorKey=<private>, NSLocalizedDescription=<private>}
I have to mention that network conditions is actually fine and events can be successfully sent from application, but widget extension.
Possible Solution
Steps to Reproduce
Environment
The text was updated successfully, but these errors were encountered: