BTHLABS-58: Share Extension in Apple Apps

This commit is contained in:
2025-10-04 08:02:13 +02:00
parent 0c12f52569
commit 99e9226338
122 changed files with 5488 additions and 411 deletions

View File

@@ -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