leonatan / lnextensionexecutor Goto Github PK
View Code? Open in Web Editor NEWAn extension executor for iOS, allowing bypass of UIActivityViewController to execute both UI and non-UI action extensions.
License: MIT License
An extension executor for iOS, allowing bypass of UIActivityViewController to execute both UI and non-UI action extensions.
License: MIT License
Thank you for sharing this amazing class, I want to ask is this class using any private APIs? Because I do want to use this in a production product.
I used UIActivity.ActivityType.message
and UIActivity.ActivityType.mail
system identifier, but can not present share sheet (UIActivityViewController
still work as normal).
Msg error:
error: Extension with identifier "com.apple.UIKit.activity.Message" not found
Maybe a new code from Apple has an update about it?
Xcode 15.3
Swift 5
IOS 16+
Hello,
How do I know the extension bundle identifier for the apps I need to share content to? i.e. WhatsApp, FB Messenger, Telegram, etc.
Thanks
Hey,
I've been trying to share a video (mp4) to WhatsApp but with no luck.
Everything works great with an image (UIImage), but not a video.
I tried to pass the video in the inputItems as an AVAsset, URL, path, but with no lack.
here's my code:
do {
let executor = try LNExtensionExecutor(extensionBundleIdentifier: "net.whatsapp.WhatsApp.ShareExtension")
executor.execute(withInputItems: [AVAsset(url: VideoURL)], on: self, completionHandler: { completed, returnedItems, activityError in
guard let activityError = activityError else {
return
}
print("Got error: \(activityError.localizedDescription)")
})
} catch(let error) {
print(error.localizedDescription)
}
Hello,
I'm exploring your method for sharing and struggled with some issues.
Here is my code:
LNExtensionExecutor *executor = [LNExtensionExecutor executorWithExtensionBundleIdentifier: @"net.whatsapp.WhatsApp.ShareExtension"];
NSString *shareText = @"foo";
NSArray *shareItems = @[shareText];
[executor executeWithInputItems:shareItems completionHandler:^(BOOL completed, NSArray * _Nullable returnedItems, NSError * _Nullable activityError) {
NSLog(@"completed = %@", completed);
}];
When I calling this snippet, I see following exception:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Unable to instantiate class named SLRemoteComposeViewController for host connection!'
I'll be very grateful for any help.
IHello i have a same problem.
Can you tell me how use this code for start whatsapp?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.