Skip to content

Instantly share code, notes, and snippets.

@pookjw
Last active November 30, 2023 22:26
Show Gist options
  • Save pookjw/60494437731879619d0cb43bce169562 to your computer and use it in GitHub Desktop.
Save pookjw/60494437731879619d0cb43bce169562 to your computer and use it in GitHub Desktop.
#import <UIKit/UIKit.h>
@interface _TtC4Toss11AppDelegate
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey, id> *)options;
@end
@interface _TtC9KakaoTalk17TalkSceneDelegate
- (void)scene:(UIScene *)scene openURLContexts:(NSSet<UIOpenURLContext *> *)URLContexts;
@end
@interface NaverSearchAppDelegate
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey, id> *)options;
@end
%hook _TtC4Toss11AppDelegate
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey, id> *)options {
NSLog(@"%@", url.absoluteString);
return %orig(app, url, options);
}
%end
%hook _TtC9KakaoTalk17TalkSceneDelegate
- (void)scene:(UIScene *)scene openURLContexts:(NSSet<UIOpenURLContext *> *)URLContexts {
NSLog(@"%@", URLContexts.allObjects.firstObject.URL.absoluteString);
%orig(scene, URLContexts);
}
%end
%hook NaverSearchAppDelegate
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey, id> *)options {
NSLog(@"%@", url.absoluteString);
return %orig(app, url, options);
}
%end
@pookjw
Copy link
Author

pookjw commented Jul 18, 2021

  • 카카오톡 : kakaotalk://qrcheckin?callingPkg=TalkWidgetExtension
  • 토스 : supertoss://qr-checkin?referrer=widget
  • 네이버 : naversearchapp://opennadot?cardId=QRCheckIn&character=brown&nclick=nappwiq.qrcheckin&referer=widget&version=46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment