Skip to content

Instantly share code, notes, and snippets.

@sassembla
Created July 31, 2018 01:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sassembla/fcaf7eafd4fc220946f62e1f3b692b3c to your computer and use it in GitHub Desktop.
Save sassembla/fcaf7eafd4fc220946f62e1f3b692b3c to your computer and use it in GitHub Desktop.
#import "UnityAppController.h"
@interface OverrideAppDelegate : UnityAppController
@end
IMPL_APP_CONTROLLER_SUBCLASS(OverrideAppDelegate)
@implementation OverrideAppDelegate
- (BOOL)application:(UIApplication*)application openURL:(NSURL*)url sourceApplication:(NSString*)sourceApplication annotation:(id)annotation
{
UnitySendMessage("AutoyaMainthreadDispatcher", "OnURLScheme", [[url absoluteString]UTF8String]);
return [super application:application openURL:url sourceApplication:sourceApplication annotation:annotation];
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment