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:
-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];