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
diff options
context:
space:
mode:
authorVladiMihaylenko <vxmihaylenko@gmail.com>2017-05-19 17:58:48 +0300
committerVladiMihaylenko <vxmihaylenko@gmail.com>2017-05-19 19:14:07 +0300
commitc039d91e60f1629aaabe23924bceebcf836ce0a8 (patch)
tree04bf883352c88856207dd15596bdffc21c910432
parentba1af913053c6f686f3023e14db0bdfdf68e210e (diff)
Added additional logging.beta-819
-rw-r--r--iphone/Maps/Classes/MapsAppDelegate.mm3
-rw-r--r--iphone/Maps/Core/Notifications/MWMPushNotifications.mm5
2 files changed, 7 insertions, 1 deletions
diff --git a/iphone/Maps/Classes/MapsAppDelegate.mm b/iphone/Maps/Classes/MapsAppDelegate.mm
index a3b9400169..43e638ec18 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:
@@ -574,7 +575,7 @@ using namespace osm_auth_ios;
- (void)applicationDidBecomeActive:(UIApplication *)application
{
LOG(LINFO, ("applicationDidBecomeActive - begin"));
- LOG(LWARNING, ("Pushwoosh token: ", [MWMPushNotifications pushToken].UTF8String));
+ NSLog(@"Pushwoosh token: %@", [MWMPushNotifications pushToken]);
[self.mapViewController onGetFocus:YES];
[self handleURLs];
[[Statistics instance] applicationDidBecomeActive];
diff --git a/iphone/Maps/Core/Notifications/MWMPushNotifications.mm b/iphone/Maps/Core/Notifications/MWMPushNotifications.mm
index ca987af6eb..9884ffdf1f 100644
--- a/iphone/Maps/Core/Notifications/MWMPushNotifications.mm
+++ b/iphone/Maps/Core/Notifications/MWMPushNotifications.mm
@@ -62,9 +62,14 @@ NSString * const kPushDeviceTokenLogEvent = @"iOSPushDeviceToken";
+ (BOOL)handleURLPush:(NSDictionary *)userInfo
{
auto app = UIApplication.sharedApplication;
+ NSLog(@"Handle url push");
+ [userInfo enumerateKeysAndObjectsUsingBlock:^(NSString * _Nonnull key, id _Nonnull obj, BOOL * _Nonnull stop) {
+ NSLog(@"Key in push's user info: %@", key);
+ }];
if (app.applicationState != UIApplicationStateInactive)
return NO;
NSString * openLink = userInfo[@"openURL"];
+ NSLog(@"Push's url: %@", openLink);
if (!openLink)
return NO;
NSURL * url = [NSURL URLWithString:openLink];