HomeiOS Developmentios - React Native Expo Cannot save pdf by way of Share...

ios – React Native Expo Cannot save pdf by way of Share after meeting and filling in TestFlight


I used to be updating my iOS app and bumped into an issue – all the pieces works via Expo GO (the pdf technology perform printToFileAsync of the expo-print package deal and downloading by way of Share from react-native) However after creating the construct and filling in TestFlight, the perform stops working (the Sharing window simply does not open) By itself, Sharing works when you take away the uri poured into it, however as quickly as I cross both the url or the base64 hyperlink there, it stops engaged on the construct (

For those who cross base64 on to the Share url, it does not work both

let generatePdf = async() => {
  const file = await printToFileAsync({
    html: `
    <html>
        <head>
            <title>Hiya</title>
        </head>
        <physique>
            <p>Hiya</p>
        </physique>
    </html>
          `,
    base64: true
  });

  let shareOptionsUrl = {
    url: `information:software/pdf;base64,${file.base64}`
  };

  await Share.share(shareOptionsUrl);

};

Pdf creation and saving perform in my iOS app
Thanks prematurely to your assist :3

I attempted to cross an empty Share with just one message – it really works within the construct

For those who cross the base64 code on to the share url, it doesn’t work within the construct, it would work in expo go

For those who cross the uri after pdf technology , it doesn’t work within the construct , in expo go it really works

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments