diff options
author | VladiMihaylenko <vxmihaylenko@gmail.com> | 2017-05-19 17:58:48 +0300 |
---|---|---|
committer | VladiMihaylenko <vxmihaylenko@gmail.com> | 2017-05-19 17:58:48 +0300 |
commit | 54fc032f0fb1b2587e907683ff500aa367b402e9 (patch) | |
tree | 3173b9c0b8124bb4c10ecfc1388c96d7ce0d063a | |
parent | ba1af913053c6f686f3023e14db0bdfdf68e210e (diff) |
Added additional logging.beta-814
-rw-r--r-- | iphone/Maps/Classes/MapsAppDelegate.mm | 1 | ||||
-rw-r--r-- | iphone/Maps/Core/Notifications/MWMPushNotifications.mm | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/iphone/Maps/Classes/MapsAppDelegate.mm b/iphone/Maps/Classes/MapsAppDelegate.mm index a3b9400169..3758639888 100644 --- a/iphone/Maps/Classes/MapsAppDelegate.mm +++ b/iphone/Maps/Classes/MapsAppDelegate.mm @@ -214,6 +214,7 @@ using namespace osm_auth_ios; string const url = m_mwmURL.UTF8String; auto const parsingType = f.ParseAndSetApiURL(url); + LOG(LWARNING, ("Started by url:", m_mwmURL.UTF8String)); switch (parsingType) { case ParsedMapApi::ParsingResult::Incorrect: diff --git a/iphone/Maps/Core/Notifications/MWMPushNotifications.mm b/iphone/Maps/Core/Notifications/MWMPushNotifications.mm index ca987af6eb..f42b132649 100644 --- a/iphone/Maps/Core/Notifications/MWMPushNotifications.mm +++ b/iphone/Maps/Core/Notifications/MWMPushNotifications.mm @@ -10,6 +10,8 @@ // folder. #import "private.h" +#include "base/logging.hpp" + #include "std/string.hpp" namespace @@ -62,9 +64,14 @@ NSString * const kPushDeviceTokenLogEvent = @"iOSPushDeviceToken"; + (BOOL)handleURLPush:(NSDictionary *)userInfo { auto app = UIApplication.sharedApplication; + LOG(LWARNING, ("Handle url push")); + [userInfo enumerateKeysAndObjectsUsingBlock:^(NSString * _Nonnull key, id _Nonnull obj, BOOL * _Nonnull stop) { + LOG(LWARNING, ("Key in push's user info:", key.UTF8String)); + }]; if (app.applicationState != UIApplicationStateInactive) return NO; NSString * openLink = userInfo[@"openURL"]; + LOG(LWARNING, ("Push's url:", openLink.UTF8String)); if (!openLink) return NO; NSURL * url = [NSURL URLWithString:openLink]; |