AbdFatah / analytics-issues

Automatically exported from code.google.com/p/analytics-issues
0 stars 0 forks source link

Tracker not working when used in a custom dispatch queue on iOS #238

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
---------------------------------------------------------------------------
NOTE: This issue tracking system is for Google Analytics developer products
only.
If you are not a developer/programmer visit:
http://www.google.com/analytics/support.html
---------------------------------------------------------------------------
Name of affected component: Mobile Tracking

Name of related library and version, if applicable (e.g. Android, iOS,
Snippets, etc.):

Issue summary:
Provide a brief summary of the issue you're experiencing.

Steps to reproduce issue:
1. Create a dispatch queue such as queue = 
dispatch_queue_create("com.company.queue", NULL);

2. Call the tracker within that queue:
    dispatch(queue, ^{
        [[GANTracker sharedTracker] startTrackerWithAccountID:@"UA-xxx"
                                               dispatchPeriod:10
                                                     delegate:self];
    });

Expected output:
What do you expect to see after performing the above steps?
Events being dispatched. Delegate called.

Actual results:
What do you actually see after performing the above steps?
No dispatch events performed.

Notes:
Provide any additional information which might be useful here. Feel free to
attach screenshots or sample code which demonstrates the issue being
described.

When using queue = dispatch_get_main_queue(), the issue gets fixed.

Original issue reported on code.google.com by sreb...@plumzi.com on 11 Oct 2012 at 6:14

GoogleCodeExporter commented 9 years ago
iOS issue SDK 1.5.1

Original comment by sreb...@plumzi.com on 11 Oct 2012 at 6:15

GoogleCodeExporter commented 9 years ago
Pertains to legacy v1.x, marking as obsolete. Please use v3.x or higher

Original comment by awa...@google.com on 9 Nov 2013 at 12:03