digitalstrawberry / ane-share Goto Github PK
View Code? Open in Web Editor NEWAdobe AIR native extension for sharing text and bitmap content.
License: MIT License
Adobe AIR native extension for sharing text and bitmap content.
License: MIT License
Hello!
Thanks for sharing!
Try to use your ane.
I would like to ask if your ane is able to share multiple files?
like below...
var sharedItems:Vector. = new [];
var len:int = 5;
for (var i:int = 0; i < len; i++) {
var sharedFile:SharedData; = new SharedData(someFile.nativePath);
sharedFile.isLocalFileUrl = true;
sharedItems.push(sharedFile);
}
Share.instance.share(sharedItems)
Hi,
I'm getting this warning when submitting to Apple, since I added your ANE
TMS-90078: Missing Push Notification Entitlement - Your app appears to register with the Apple Push Notification service, but the app signature's entitlements do not include the "aps-environment" entitlement.
I've tried adding the aps-environment entitlement for production, but that just changes the warning, because our app doesnt use Push Notifications, and hence our App certificate does not include the Push Notification stuff.
Do you know how I can stop this warning without totally enabling Push Notifications by generating a new App certificate etc etc ??
Distriqt in the last version of their ANE's remove androidsupport.V4 to support Android 10
can u update your ANE to support this version?
I couldn't figure out how to set the title for the shared content on wechat app. Is it app specific? like I have to find the right variable name for the SharedData? Many thanks.
Hello!
First, thanks for the great work and for sharing 👍
Everything works perfectly on iOS. Text and/or url sharing works fine on Android too.
When I try to share bitmapData on Android, the system sharing popup won't show and none of the 3 events are fired.
Please note I tried on two different Android devices and two different Android versions.
I may be doing something wrong, but I don't think so because the same code works fine on iOS.
package {
import com.digitalstrawberry.ane.share.Share;
import com.digitalstrawberry.ane.share.SharedData;
import com.digitalstrawberry.ane.share.events.ShareEvent;
import flash.display.Bitmap;
import flash.display.Sprite;
public class Main extends Sprite {
[Embed(source="/../assets/test.png")]
private static var SHARED_IMAGE:Class;
private var bitmapTest:Bitmap = new SHARED_IMAGE();
public function Main() {
Share.instance.addEventListener(ShareEvent.COMPLETE, onSharingComplete);
Share.instance.addEventListener(ShareEvent.CANCEL, onSharingCancel);
Share.instance.addEventListener(ShareEvent.ERROR, onSharingError);
var sharedImage:SharedData = new SharedData(bitmapTest.bitmapData);
var sharedText:SharedData = new SharedData("Lorem ipsum dolor sit amet, mel et dolores quaestio.");
var sharedLink:SharedData = new SharedData("https://github.com/DigitalStrawberry/ANE-Share");
sharedLink.shareWithFacebook = false;
var sharedItems:Vector.<SharedData> = new <SharedData>[sharedImage, sharedText, sharedLink]; // DOESN'T WORK ON ANDROID
//var sharedItems:Vector.<SharedData> = new <SharedData>[sharedImage]; // DOESN'T WORK
//var sharedItems:Vector.<SharedData> = new <SharedData>[sharedText, sharedLink]; // WORKS FINE
Share.instance.share(sharedItems);
trace("blbl");
}
private function onSharingError(event:ShareEvent):void {
trace("ANE SHARE : Error");
}
private function onSharingCancel(event:ShareEvent):void {
trace("ANE SHARE : Cancel");
}
private function onSharingComplete(event:ShareEvent):void {
trace("ANE SHARE : Complete");
}
}
}
The verison 1.08 bin does not work on armv7, but it works fine on armv8. On armv7, after call "shareAne.share(sharedItems, shareOptions);" there is no share window popup, no errors…
Hello,
is there a way to set the mime type for the share intent?
My application would need to send a csv file which basically is just text.
With the extension "csv" however the sharing does not work as expected:
The "Messaging" app says: "failed to load attachment".
If I change the extension to "txt" however, the app accepts, but does not show an attachment.
In the mail app all works well.
Is the solution out of the extensions scope?
thanks!
Hello,
I just wanted to try the Ane with a project and got the follwing message:
Warning: packageName android.support.compat used by more than one ANE. Ignoring this entry
Warning: packageName android.support.mediacompat used by more than one ANE. Ignoring this entry
I have also some other ANEs activated in the app.
Is this a conflict that can be fixed?
Hello
Great work
Can You update to harman air sdk 33.x for support 64bit android?
Google not allowed 32bit apps on console.
Best.
Hello,
thanks for your work, much appreciated.
Since it seems that this extension does not enable the Air app to receive files from other applications via share, I was wondering how this can be achieved.
Writing exception to parcel
java.lang.SecurityException: Permission Denial: reading androidx.core.content.FileProvider
thanks for this extension.
when I share the first time with an application like instagram, for example, the other times that I can not change my sharing application, I'm stuck on instagram, unless I reset the application options on my mobile Android.
Hi, on some messaging apps like Telegram there are 2 ways to share an image:
This ane works with the second approach on Telegram which users don't mean for sharing.
Hello, Could you please provide a link of the ane file with the latest version? Thanks so much.
Hello!
Thanks for sharing!
Try to use your ane.
I would like to receive ane's events in Android 7.1.1.
But, I got the following error.
ArgumentError: Error #1063
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.