Giter Site home page Giter Site logo

Comments (5)

alinz avatar alinz commented on July 28, 2024 1

@itaibs yeah, that is correct. until I fix the issue, there is nothing you can do. and Please send me a PR updating doc and referring to this issue or the link to apple with some description and details.

Thank you

from react-native-share-extension.

alinz avatar alinz commented on July 28, 2024

@itaibs I have built this only for browsers to share links. One thing you can do is put the breaking point here and try to see why it causes that error. I'm going to look into this issue in few days as I progress in my app. if you can solve this I'm more than happy to accept your PR. other than that you have to wait couple of days before I get into this issue.

from react-native-share-extension.

itaibs avatar itaibs commented on July 28, 2024

@alinz Thanks for the quick reply!

Considering my knowledge of native iOS programming is 0, I don't think I can be much help.
Glad to hear this is already something you plan on doing!

In the meanwhile, do you know how I can prevent the extension of showing up when sharing from unsupported apps?

from react-native-share-extension.

alinz avatar alinz commented on July 28, 2024

@itaibs one thing you should know that you need to set NSExtensionAttributes in your plist file for your app in order apple accept your app. Maybe you can dig into this and see if you can limit the access of share extension in certain area. You can look into this and search for Declaring Supported Data Types for a Share or Action Extension.

let me know if you find something, it would be nice if you can document it and send a PR to this repo.

from react-native-share-extension.

itaibs avatar itaibs commented on July 28, 2024

@alinz Thanks for the heads up.
From what you are saying, I conclude (and please correct me if I'm wrong) that the following should be in Info.plist:

<key>NSExtensionAttributes</key>
<dict>
  <key>NSExtensionActivationRule</key>
  <dict>
    <key>NSExtensionActivationSupportsWebURLWithMaxCount</key>
    <integer>1</integer>
  </dict>
</dict>

I have done this in my project and indeed the result is that my extension shows when sharing from browsers and doesn't show when sharing from apps like "Notes". YouTube, however, still shows my extension, I'm guessing because it does actually share a url.

So as far as I understand, there's nothing to be done about that for now, correct?

I'd be happy to add this step to the Readme.md if you think this is right (considering this doesn't fully solve the issue).

from react-native-share-extension.

Related Issues (20)

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.