ADMS in iOS app, Charles only shows an entry after resume of the app, not launch

Avatar

Avatar
Validate 1
Level 1
joonturbo
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
joonturbo
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
joonturbo
Level 1

15-10-2015

I'm integrating ADMS into an iOS game.

I've setup Charles to test whether the calls are coming through, and I can only see them after I've paused the app (press home button) and resumed it. They are not showing up on launch.

I have a wrapper class that looks like this:

#import <Foundation/Foundation.h> #include <OpenFLOmniture.h> #include <ADMS_Measurement.h> #define __STDC_FORMAT_MACROS // non needed in C, only in C++ #include <inttypes.h> typedef void (*FunctionType)(); namespace openflomniture { void init(const char* tracking_rsid, const char* tracking_server, const char* app_name); void init(const char* tracking_rsid, const char* tracking_server, const char* app_name) { NSLog(@"Omniture Init"); NSString* ns_rsid = [[NSString alloc] initWithUTF8String:tracking_rsid]; NSString* ns_server = [[NSString alloc] initWithUTF8String:tracking_server]; NSString* ns_app_name = [[NSString alloc] initWithUTF8String:app_name]; ADMS_Measurement *measurement = [ADMS_Measurement sharedInstance]; [measurement configureMeasurementWithReportSuiteIDs:ns_rsid trackingServer:ns_server]; measurement.offlineTrackingEnabled = YES; // Must be in parity with server [measurement setLifecycleSessionTimeout:1800];  // 30 Minutes NSString *sdkVersion = [NSString stringWithFormat:@"%@:%@:%@", [[ADMS_Measurement sharedInstance] version], [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"], [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]]; // Persistent Context Data the only way to set appName/sdkVersion on launch in 3.x NSMutableDictionary *contextData = [NSMutableDictionary dictionary]; [contextData setObject:ns_app_name forKey:@"appName"]; [contextData setObject:sdkVersion forKey:@"sdkVersion"]; [measurement setPersistentContextData:contextData]; [measurement setAutoTrackingOptions:ADMS_AutoTrackOptionsLifecycle]; } }

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 250
Level 10
TanmayMathur
Level 10

Likes

245 likes

Total Posts

1,193 posts

Correct reply

422 solutions
Top badges earned
Validate 250
Validate 100
Validate 25
Validate 50
Validate 10
View profile

Avatar
Validate 250
Level 10
TanmayMathur
Level 10

Likes

245 likes

Total Posts

1,193 posts

Correct reply

422 solutions
Top badges earned
Validate 250
Validate 100
Validate 25
Validate 50
Validate 10
View profile
TanmayMathur
Level 10

15-10-2015

Hi, 

Thanks for reaching out to the community.

Your query looks to be a very specific one.  I suggest you should get in touch with the Adobe ClientCare, create an incident and have an expert look into this. 

Regards,

TM

Answers (0)