#import "UnityAppController.h"
#import <KakaoOpenSDK/KakaoOpenSDK.h>
@interface OverrideAppDelegate : UnityAppController
@end
@implementation OverrideAppDelegate
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url
options:(NSDictionary<NSString *,id> *)options {
if ([KOSession isKakaoAccountLoginCallback:url]) {
return [KOSession handleOpenURL:url];
}
return [super application:application openURL:url options:options];
}
- (void)applicationDidBecomeActive:(UIApplication *)application
{
[super applicationDidBecomeActive:application];
[KOSession handleDidBecomeActive];
}
@end
IMPL_APP_CONTROLLER_SUBCLASS(OverrideAppDelegate)
I have literally looked at every website that I could find on google.
It works if I implement the functions into the UnityAppController.mm
but if I create OverrideAppDelegate.m which utilizes IMPL_APP_CONTROLLER_SUBCLASS macro
It just completely skips. I tried adding NSLog to each functions, but neither prints.
I have no idea whats going on…