Code Monkey home page Code Monkey logo

ane-share's Issues

Is your ane is able to share multiple files?

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)

Push Notifiation warning when submitting to Apple

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

AndroidX

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?

How to set title for sharing?

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.

Can't share bitmapData on Android

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.

The issue:

When I try to share bitmapData on Android, the system sharing popup won't show and none of the 3 events are fired.

Does anyone have the same problem?

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.

Here's the code I used to test the ANE:

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");
    }
}
}

intent setType

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!

packageName android.support.compat used by more than one ANE

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?

64 bit android

Hello

Great work

Can You update to harman air sdk 33.x for support 64bit android?
Google not allowed 32bit apps on console.

Best.

Receive files from other applications?

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.

Permission error

Writing exception to parcel
java.lang.SecurityException: Permission Denial: reading androidx.core.content.FileProvider

change sharing application problem

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.

On some messaging apps the bitmap is shared as a File

Hi, on some messaging apps like Telegram there are 2 ways to share an image:

  1. As photo (which compresses the image and previews it normally as a photo)
  2. Without Compression (which previews it as a document file, not a photo)
    In the second case, no text or link can be attached to the message and the photo is previewed as a small thumbnail.

This ane works with the second approach on Telegram which users don't mean for sharing.

Can't receive event.

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.