GithubHelp home page GithubHelp logo

Comments (8)

dieskim avatar dieskim commented on September 29, 2024

For now I have come up with a TEMP fix

It basically does the same as what is done with crash reports

dieskim@0f2e338

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.

dieskim avatar dieskim commented on September 29, 2024

Also it seems that connectionWithRequest:delegate has been Deprecated in iOS 9.0.

https://developer.apple.com/library/prerelease/ios//documentation/Cocoa/Reference/Foundation/Classes/NSURLConnection_Class/index.html#//apple_ref/occ/clm/NSURLConnection/connectionWithRequest:delegate:

from countly-sdk-ios.

erkanyildiz avatar erkanyildiz commented on September 29, 2024

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.

erkanyildiz avatar erkanyildiz commented on September 29, 2024

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.

dieskim avatar dieskim commented on September 29, 2024

Simular issue - https://developer.appcelerator.com/question/122673/nsurlconnection-in-ios-module

from countly-sdk-ios.

erkanyildiz avatar erkanyildiz commented on September 29, 2024

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.

dieskim avatar dieskim commented on September 29, 2024

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.

erkanyildiz avatar erkanyildiz commented on September 29, 2024

According to our tests with native app, this looks like a Titanium related issue.

from countly-sdk-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.