Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/iphone
diff options
context:
space:
mode:
authorTimur Bernikowich <bernikowich@icloud.com>2014-11-27 12:49:00 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:33:45 +0300
commit03a3fcc1498f737ee608a850bf49623e5306301b (patch)
tree7ae045c35497ed89a38b1d82a666efff9d25edd5 /iphone
parent890403184236324af75901b267462f233601ba9a (diff)
[ios] Added sharing logs.
Diffstat (limited to 'iphone')
-rw-r--r--iphone/Maps/Classes/LocalNotificationManager.mm5
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];