forked from organicmaps/organicmaps
[ios] Added sharing logs.
This commit is contained in:
parent
8904031842
commit
03a3fcc149
1 changed files with 4 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Reference in a new issue