question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Extension was interrupted while PDF sharing on IOS

See original GitHub issue

Steps to reproduce

RNFetchBlob.config({
  fileCache: true,
  path: `${RNFetchBlob.fs.dirs.DocumentDir}/${fileName}.${fileExt}`,
  appendExt: fileExit
}).fatch(method, url, headers).then(res => {
  const path = res.path();
  await Share.open({
    type: 'application/pdf',
    url: Platform.OS === 'android' ? `file://${path}` : path,
  });
})

Then try to share with ICloud drive/Whatsapp

Expected behaviour

File is shared

Actual behaviour

I see Extension was interrupted error on ICloud sharing screen shot 2018-11-20 at 19 11 36

and Item cannot be shared on Whatsapp sharing img_5933

path on device looks like: img_5934

Environment

React Native Environment Info: System: OS: macOS High Sierra 10.13.6 CPU: (4) x64 Intel® Core™ i5-4288U CPU @ 2.60GHz Memory: 38.09 MB / 8.00 GB Shell: 5.3 - /bin/zsh Binaries: Node: 8.12.0 - ~/.nvm/versions/node/v8.12.0/bin/node Yarn: 1.12.3 - /usr/local/bin/yarn npm: 6.4.1 - ~/.nvm/versions/node/v8.12.0/bin/npm SDKs: iOS SDK: Platforms: iOS 11.4, macOS 10.13, tvOS 11.4, watchOS 4.3 Android SDK: API Levels: 23, 25, 26, 27, 28 Build Tools: 27.0.3, 28.0.3 System Images: android-27 | Google Play Intel x86 Atom IDEs: Android Studio: 3.2 AI-181.5540.7.32.5056338 Xcode: 9.4.1/9F2000 - /usr/bin/xcodebuild npmPackages: react: 16.6.1 => 16.6.1 react-native: 0.57.5 => 0.57.5 npmGlobalPackages: react-native-cli: 2.0.1

react-native-share

“react-native-share”: “^1.1.3”

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
indapubliccommented, Jan 5, 2019

@export-mike Could you repeat it on clean demo? It would be excellent and helpful

0reactions
export-mikecommented, Jan 7, 2019

@indapublic https://github.com/export-mike/react-native-share-pdf-ios-android-example seems to be working!

├─ react-native-fs@2.13.3
├─ react-native-share@1.1.3
├─ react-native@0.57.8
└─ rn-fetch-blob@0.10.15
Read more comments on GitHub >

github_iconTop Results From Across the Web

Sharing a pdf url through share ex… | Apple Developer Forums
Hi Apple Team, We have an app feature in SME app which enables user to share docs,pdf's,images, urls etc. While we trying to...
Read more >
Sharing PDF file from Safari with Action Extension failing in ...
The Action Extension in this app is open to PDF files and is available when a web page loaded in Safari is opened...
Read more >
Documents app quits unexpectedly
On some occasions, the Documents app might have problems with performance resulting in crashes - here are some troubleshooting steps to try.
Read more >
Fix file download errors - Google Chrome Help
If you receive an error message on Chrome when you try to download apps, themes, extensions or other files, try these fixes.
Read more >
Reeder 5
A sharing extension allows you to add links from outside of Reeder, on iOS and macOS. Bionic Reading. A higher dimension of reading....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found