diff options
author | Timur Bernikowich <bernikowich@icloud.com> | 2014-11-27 12:49:00 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:33:45 +0300 |
commit | 03a3fcc1498f737ee608a850bf49623e5306301b (patch) | |
tree | 7ae045c35497ed89a38b1d82a666efff9d25edd5 /iphone | |
parent | 890403184236324af75901b267462f233601ba9a (diff) |
[ios] Added sharing logs.
Diffstat (limited to 'iphone')
-rw-r--r-- | iphone/Maps/Classes/LocalNotificationManager.mm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/iphone/Maps/Classes/LocalNotificationManager.mm b/iphone/Maps/Classes/LocalNotificationManager.mm index ce1717b794..035456594e 100644 --- a/iphone/Maps/Classes/LocalNotificationManager.mm +++ b/iphone/Maps/Classes/LocalNotificationManager.mm @@ -75,7 +75,10 @@ typedef void (^CompletionHandler)(UIBackgroundFetchResult); notificationTitle = L(notificationInfo[@"NotificationLocalizedBodyKey"]); UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:notificationTitle message:nil delegate:nil cancelButtonTitle:dismissiveAction otherButtonTitles:positiveAction, nil]; alertView.tapBlock = ^(UIAlertView *alertView, NSInteger buttonIndex) { - if (buttonIndex != alertView.cancelButtonIndex) + NSString * notificationID = notificationInfo[@"NotificationID"]; + BOOL shared = (buttonIndex != alertView.cancelButtonIndex); + [[Statistics instance] logEvent:[NSString stringWithFormat:@"'%@' Notification Show", notificationID] withParameters:@{@"Shared" : @(shared)}]; + if (shared) [self runNotificationAction:notificationInfo]; }; [alertView show]; |