Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move flushing to a background thread #1

Closed
reinpk opened this issue Mar 11, 2013 · 2 comments
Closed

move flushing to a background thread #1

reinpk opened this issue Mar 11, 2013 · 2 comments

Comments

@reinpk
Copy link
Contributor

reinpk commented Mar 11, 2013

No description provided.

@reinpk
Copy link
Contributor Author

reinpk commented Mar 11, 2013

Helpful comments from Jake Heiser:

There are several ways to call -flush on a background thread, mostly depends on how far back you are trying to maintain backwards compatibility. The most used way I've seen is using:

    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 
                                         (unsigned long)NULL), ^(void) {
        // Your code
    });

but other ways include using an NSOperationQueue, and -performSelectorInBackground:withObject:. The first and second ways require >= iOS 4.0 but the third goes back further (pretty sure on this one, might want to check).

@reinpk
Copy link
Contributor Author

reinpk commented Mar 12, 2013

fixed by Tony's pull request #6 thanks!

@reinpk reinpk closed this as completed Mar 12, 2013
f2prateek pushed a commit that referenced this issue Jul 29, 2015
Squashed commit of the following:

commit fae7de2
Author: sharekris <[email protected]>
Date:   Wed Jul 29 13:48:49 2015 -0700

    Podfile.lock changed to use 2.0.3 after running make build.

commit 0d777e8
Merge: f2e88e8 12165d5
Author: SimpliRay <[email protected]>
Date:   Wed Jul 29 10:27:25 2015 -0700

    Merge pull request #1 from sharekris/updating_code_for_2.0.2

    Updating code for 2.0.3

commit 12165d5
Author: sharekris <[email protected]>
Date:   Tue Jul 28 17:06:28 2015 -0700

    Removed tab.

commit f99b418
Author: sharekris <[email protected]>
Date:   Tue Jul 28 16:39:56 2015 -0700

    Changed to version 2.0.3 as that is the latest.

commit 62c7673
Author: sharekris <[email protected]>
Date:   Tue Jul 28 16:35:31 2015 -0700

    Added call to setSDKWrapper method to send the wrapper name and version to our server.
    Modified the track event with quantity and revenue to trackEvent with count and value only when both revenue and quantity are specified in the properties.

commit b9d621b
Author: sharekris <[email protected]>
Date:   Tue Jul 28 12:25:05 2015 -0700

    Removed commented out tests.

commit b2dc396
Author: sharekris <[email protected]>
Date:   Mon Jul 27 19:24:08 2015 -0700

    Added OCMokito tests for Kahuna Integration. Made some code changes in SEGKahunaIntegration to allow OCMokito to mock the Kahuna object.
    Created SEGKahunaDefines.h header file and moved all static string definitions into that file.

commit d34eb4a
Author: sharekris <[email protected]>
Date:   Thu Jul 23 15:25:24 2015 -0700

    Modified getUserCredentials to use createUserCredentials. The latter is what we want to use since we want the request to identify detect non-overlaps. If we do a getUserCredential then it will always be over lapping credentials.

commit 59d2467
Author: sharekris <[email protected]>
Date:   Mon Jul 20 13:35:38 2015 -0700

    Modified the Kahuna wrapper to use Kahuna instead of KahunaAnalytics SDK. Replaced the API setUserCredentialsWithKey with addCredential and then calling loginWithCredentials.
f2prateek pushed a commit that referenced this issue Jul 31, 2015
Moved the code to observe for the UIApplicationDidFinishLaunchingNoti…
f2prateek pushed a commit that referenced this issue Jul 31, 2015
Added the IF condition for forwarding failedToRegisterError in case i…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant