Unable to attach media file to social sharing email, ios


#1

I am creating an email sharing app, which takes a media recording and attaches it to an email using social sharing. On android, everything works perfectly, but on ios the email refuses to open. The email opens when the attachment is not in the email. In one page, the media plugin is declared with this:

 this.media = new MediaPlugin('documents://recording.wav');

After recording, the media plays using the .play() method. Then I reference the file like this in social sharing:
this.socialSharing.shareViaEmail(body, 'Subject', [''], [''], [''], 'documents:///recording.wav');
am I referencing the file path incorrectly? Any help is appreciated.