You've already forked hotpocket
BTHLABS-58: Share Extension in Apple Apps
This commit is contained in:
@@ -7,6 +7,24 @@
|
||||
|
||||
#import "SceneDelegate.h"
|
||||
|
||||
#import "AppDelegate.h"
|
||||
#import "HPAuthFlow.h"
|
||||
|
||||
@implementation SceneDelegate
|
||||
|
||||
-(void)scene:(UIScene *)scene openURLContexts:(NSSet<UIOpenURLContext *> *)URLContexts {
|
||||
AppDelegate *appDelegate = [[UIApplication sharedApplication] delegate];
|
||||
|
||||
for (UIOpenURLContext *context in URLContexts) {
|
||||
NSURL *url = context.URL;
|
||||
HPAuthParams *receivedAuthParams = [appDelegate.authFlow handlePostAuthenticateURL:url];
|
||||
|
||||
if (receivedAuthParams == nil) {
|
||||
return;
|
||||
}
|
||||
|
||||
[appDelegate.authFlow handleAuthParams:receivedAuthParams];
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user