We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77a07c9 commit fa0dbddCopy full SHA for fa0dbdd
packages/app-mobile/ios/ShareExtension/Source/ShareExtension/ShareViewController.m
@@ -132,10 +132,18 @@ - (void)launchMainApp {
132
UIResponder* responder = self;
133
while (responder != nil) {
134
if ([responder respondsToSelector:selector]) {
135
- [responder performSelector:selector withObject:[NSURL URLWithString:ShareExtensionShareURL]];
+ UIApplication *app = (UIApplication*) responder;
136
+ NSURL *url = [NSURL URLWithString:ShareExtensionShareURL];
137
+ [app openURL:url options:@{} completionHandler:^(BOOL success) {
138
+ if (success) {
139
+ NSLog(@"Opened URL successfully!");
140
+ } else {
141
+ NSLog(@"Failed to open URL.");
142
+ }
143
+ }];
144
break;
145
}
-
146
+
147
responder = responder.nextResponder;
148
149
0 commit comments