New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple share in iOS #340

Open
NawazKhanMd opened this Issue Aug 14, 2018 · 5 comments

Comments

Projects
None yet
5 participants
@NawazKhanMd

NawazKhanMd commented Aug 14, 2018

i have tried multiple share in android its working fine,
when i tried to do it in iOS with changed path

var path = RNFS.DocumentDirectoryPath + '/' + trimmedFileName;
file is successfully written.
so when I try to share with code
let shareOptions = { type: "application/pdf", title: "Share Via", message: message, urls: dataArray, }; Share.open(shareOptions);

dataArray holds the urls to downloaded file in array

when i select a medium such as mail only message is viewed and i cant see the files listed in the attachments

but single sharing is working with the code
let shareOptions = { type: "application/pdf", title: "Share Via", message: message, url: dataArray[0], }; Share.open(shareOptions);

@NawazKhanMd

This comment has been minimized.

Show comment
Hide comment
@NawazKhanMd

NawazKhanMd Aug 16, 2018

@jgcmarins What information u might need ? :(

NawazKhanMd commented Aug 16, 2018

@jgcmarins What information u might need ? :(

@atull

This comment has been minimized.

Show comment
Hide comment
@atull

atull Aug 16, 2018

@NawazKhanMd This working fine on my end. I am testing the on iPhone5s & I am able to see all the attachments in my mail while trying to share them.

Can you also once check by adding few Https image urls in the array & then try to share, see if its working in your project. This can give a more clarity, if the problem is in library or the path document you are trying to share.

atull commented Aug 16, 2018

@NawazKhanMd This working fine on my end. I am testing the on iPhone5s & I am able to see all the attachments in my mail while trying to share them.

Can you also once check by adding few Https image urls in the array & then try to share, see if its working in your project. This can give a more clarity, if the problem is in library or the path document you are trying to share.

@yeomann

This comment has been minimized.

Show comment
Hide comment
@yeomann

yeomann Aug 16, 2018

Collaborator

could you perhaps share some bit of code to help him @atull

Collaborator

yeomann commented Aug 16, 2018

could you perhaps share some bit of code to help him @atull

@atull

This comment has been minimized.

Show comment
Hide comment
@atull

atull Aug 17, 2018

@NawazKhanMd @yeomann You could try something like below shared code:

const shareOptions = {
title: 'Share via',
urls: ['https://img.icons8.com/search/2266EE', 'https://img.icons8.com/color/search'],
};
Share.open(shareOptions);

I guess, if this works then the issue is not related to library. The issue could be with one of the URI's of the documents, although i'm not sure of it. @NawazKhanMd Can you also cross check with all the document's paths you are receiving in dataArray in your example?

atull commented Aug 17, 2018

@NawazKhanMd @yeomann You could try something like below shared code:

const shareOptions = {
title: 'Share via',
urls: ['https://img.icons8.com/search/2266EE', 'https://img.icons8.com/color/search'],
};
Share.open(shareOptions);

I guess, if this works then the issue is not related to library. The issue could be with one of the URI's of the documents, although i'm not sure of it. @NawazKhanMd Can you also cross check with all the document's paths you are receiving in dataArray in your example?

@nicubarbaros

This comment has been minimized.

Show comment
Hide comment
@nicubarbaros

nicubarbaros Sep 5, 2018

@atull Nope, this doesnot work. The dialog it's opening but It cant seem to find any app to be shared on.

nicubarbaros commented Sep 5, 2018

@atull Nope, this doesnot work. The dialog it's opening but It cant seem to find any app to be shared on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment