forked from organicmaps/organicmaps
[statistics] [ios] Added Flurry log status check.
This commit is contained in:
parent
b5596ea73b
commit
34114786f2
1 changed files with 10 additions and 1 deletions
|
@ -16,6 +16,15 @@
|
|||
// If you have a "missing header error" here, then please run configure.sh script in the root repo folder.
|
||||
#import "../../../private.h"
|
||||
|
||||
namespace
|
||||
{
|
||||
void checkFlurryLogStatus(FlurryEventRecordStatus status)
|
||||
{
|
||||
NSCAssert(status == FlurryEventRecorded || status == FlurryEventLoggingDelayed,
|
||||
@"Flurry log event failed.");
|
||||
}
|
||||
} // namespace
|
||||
|
||||
@interface Statistics ()
|
||||
|
||||
@property(nonatomic) NSDate * lastLocationLogTimestamp;
|
||||
|
@ -62,8 +71,8 @@
|
|||
if (![MWMSettings statisticsEnabled])
|
||||
return;
|
||||
NSMutableDictionary * params = [self addDefaultAttributesToParameters:parameters];
|
||||
[Flurry logEvent:eventName withParameters:params];
|
||||
[Alohalytics logEvent:eventName withDictionary:params];
|
||||
checkFlurryLogStatus([Flurry logEvent:eventName withParameters:params]);
|
||||
}
|
||||
|
||||
- (void)logEvent:(NSString *)eventName withParameters:(NSDictionary *)parameters atLocation:(CLLocation *)location
|
||||
|
|
Loading…
Add table
Reference in a new issue