Post

Replies

Boosts

Views

Activity

Launching main app from share extension.
Hi,I am having a use case where I have to launch the main app when user taps on the file(s) from Photo Library or FileManager and choose to share with my app.I have implemented Share Extension to enable my extension to be visible in share menu.When the extension is selected I called the openUrl from extensionContext, but it always returns NO for success and didnt launch app.NSURL *url = [NSURL URLWithString:@"myapp://"]; [self.extensionContext openURL: url completionHandler:^(BOOL success) { NSLog(@"%@", success?@"Success":@"Failure");//This always retuns NO. }];I have seen various apps on app store is able to launch/open main container app from share extension including iBooks.Can you suggest me a way to open/launch main app from the share menu?
Topic: UI Frameworks SubTopic: UIKit Tags:
3
0
7.9k
Feb ’22
Launching main app from share extension.
Hi,I am having a use case where I have to launch the main app when user taps on the file(s) from Photo Library or FileManager and choose to share with my app.I have implemented Share Extension to enable my extension to be visible in share menu.When the extension is selected I called the openUrl from extensionContext, but it always returns NO for success and didnt launch app.NSURL *url = [NSURL URLWithString:@"myapp://"]; [self.extensionContext openURL: url completionHandler:^(BOOL success) { NSLog(@"%@", success?@"Success":@"Failure");//This always retuns NO. }];I have seen various apps on app store is able to launch/open main container app from share extension including iBooks.Can you suggest me a way to open/launch main app from the share menu?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
3
Boosts
0
Views
7.9k
Activity
Feb ’22