From 74311d97780d7b164d8883847a8d7a8bd047f5da Mon Sep 17 00:00:00 2001 From: Christian Cook Date: Tue, 14 Feb 2017 16:37:51 +0000 Subject: [PATCH] Pass through subtitle into onHomeIconPressed --- src/ios/app/AppDelegate+threedeetouch.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ios/app/AppDelegate+threedeetouch.m b/src/ios/app/AppDelegate+threedeetouch.m index c0353b5..443d8cf 100644 --- a/src/ios/app/AppDelegate+threedeetouch.m +++ b/src/ios/app/AppDelegate+threedeetouch.m @@ -8,7 +8,7 @@ @implementation AppDelegate (threedeetouch) - (void)application:(UIApplication *)application performActionForShortcutItem:(UIApplicationShortcutItem *)shortcutItem completionHandler:(void(^)(BOOL succeeded))completionHandler { NSString* jsFunction = @"ThreeDeeTouch.onHomeIconPressed"; - NSString *params = [NSString stringWithFormat:@"{'type':'%@', 'title': '%@'}", shortcutItem.type, shortcutItem.localizedTitle]; + NSString *params = [NSString stringWithFormat:@"{'type':'%@', 'title': '%@', 'subtitle': '%@'}", shortcutItem.type, shortcutItem.localizedTitle, shortcutItem.localizedSubtitle]; NSString* result = [NSString stringWithFormat:@"%@(%@)", jsFunction, params]; [self callJavascriptFunctionWhenAvailable:result]; } @@ -36,4 +36,4 @@ - (void) callJavascriptFunctionWhenAvailable:(NSString*)function { - (void)applicationDidBecomeActive:(UIApplication *)application { } -@end \ No newline at end of file +@end