File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,16 @@ - (id)initWithSettings:(NSDictionary *)settings andAmplitude:(Amplitude *)amplit
2525 self.traitsToSetOnce = [NSSet setWithArray: self .settings[@" traitsToSetOnce" ]];
2626 }
2727
28+ // Amplitude states that if you want location tracking disabled on startup of the app,
29+ // Call before initializing the apiKey
30+ if ([(NSNumber *)self .settings[@" enableLocationListening" ] boolValue ]) {
31+ [self .amplitude enableLocationListening ];
32+ SEGLog (@" [Ampltidue enableLocationListening]" );
33+ } else {
34+ [self .amplitude disableLocationListening ];
35+ SEGLog (@" [Ampltidue disableLocationListening]" );
36+ }
37+
2838 NSString *apiKey = self.settings [@" apiKey" ];
2939 [self .amplitude initializeApiKey: apiKey];
3040 SEGLog (@" [Amplitude initializeApiKey:%@ ]" , apiKey);
You can’t perform that action at this time.
0 commit comments