I'm trying to use Google Analytics SDK v3.10 for iOS.
I added all dependencies and headers, then in my app delegate, method :
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
, I added those lines :
[[GAI sharedInstance] setDispatchInterval:20.0];
[[GAI sharedInstance] trackerWithTrackingId:@"UA-XXXXXXXX-X"];
[[GAI sharedInstance].logger setLogLevel:kGAILogLevelVerbose];
with the proper tracking id.
In my landing view, method viewDidAppear, I added the lines
id<GAITracker> tracker = [[GAI sharedInstance] defaultTracker];
[tracker set:kGAIScreenName value:@"MyLandingView"];
[tracker send:[[GAIDictionaryBuilder createAppView] build]];
It leads to an horrible memory leak (about +1mb/s) and a freeze with those logs :
Apr 20 08:07:47 iPad-of-Pitt MyAppName[920] <Warning>: void SendDelegateMessage(NSInvocation *): delegate (webView:decidePolicyForNavigationAction:request:frame:decisionListener:) failed to return after waiting 10 seconds. main run loop mode: kCFRunLoopDefaultMode
Is this a known bug ? Any clue on how to avoid that ?
Thanks in advance !
EDIT : duplicated this question in google groups https://groups.google.com/forum/?fromgroups#!topic/ga-mobile-app-analytics/0goRZOc3vk0
EDIT 2 : also posted the issue here https://code.google.com/p/analytics-issues/issues/detail?id=617&thanks=617&ts=1429543879