Comments (8)
For now I have come up with a TEMP fix
It basically does the same as what is done with crash reports
But I believe that if it fails
if (error || !recvData)
it will cause all event sending to pause. I believe this will happen for crash and events as well.
from countly-sdk-ios.
Also it seems that connectionWithRequest:delegate has been Deprecated in iOS 9.0.
from countly-sdk-ios.
Actually I have tried all these combinations. No problem at all.
Picture existence
- none
- only kCLYUserPicture (on web)
- only kCLYUserPicturePath (on device)
- both kCLYUserPicture & kCLYUserPicturePath
Picture file format
- JPG
- PNG
- GIF
Before / after recording other events
Internet connection available / not available (sending later in next session)
Real Device / simulator
Now I think this is a Titanium issue.
Just like that Open-UDID problem.
from countly-sdk-ios.
Your temp fix has no good use. It is a special case where SDK sends a synchronous request for delivering crash report just before application is terminated. You must not use it for sending user details, as it will cause the app to be unresponsive while that request is going on, and it is impossible to upload profile picture that way.
from countly-sdk-ios.
Simular issue - https://developer.appcelerator.com/question/122673/nsurlconnection-in-ios-module
from countly-sdk-ios.
Currently NSURLConnection deprecation in iOS9 is not a problem. We will be using NSURLSession instead of it in the future anyway.
from countly-sdk-ios.
Ok I might have a solution - needs some more testing
https://developer.appcelerator.com/question/144514/module-development----nsurlrequest
Adding the following macro
ENSURE_UI_THREAD
Info the proxy function that calls recordUserDetails seems to fix it..
from countly-sdk-ios.
According to our tests with native app, this looks like a Titanium related issue.
from countly-sdk-ios.
Related Issues (20)
- Support numbers and boolean value types for custom user profile data HOT 3
- iOS Deployment Target HOT 3
- No crashes being reported HOT 1
- Fails to build on Xcode 13 beta 3 due to unguarded use of UIApplication. HOT 1
- CountlyFeedbackWidget getData not available HOT 8
- Not able to update Countly 20.11.1 to newer version via cocoapods HOT 2
- Background task that isn't ended HOT 1
- Regression causes crash when logging out current user HOT 2
- Installation method: XCFramework HOT 2
- '-[OS_xpc_dictionary path]: unrecognized selector sent to instance HOT 1
- Version 22.06.2 not available on Cocoapods HOT 2
- macOS versions not properly reported HOT 1
- Session is not increased when calling endSession() and then beginSession() HOT 2
- Crash when Remote Config value is null HOT 1
- macOS build errors HOT 3
- Build error: 'CountlyRCData.h' file not found in version 23.6.0 HOT 5
- After Updating to Release 23.8.0: `'CountlyViewTracking.h' file not found` HOT 1
- Which branch is the default one? HOT 1
- Events appear very delayed in Countly dashboard HOT 3
- Can't use PLCrashReporter HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from countly-sdk-ios.