alinz / react-native-share-extension

react-native as an engine to drive share extension
MIT License
762 stars 396 forks source link

Share extension doesn't shows up in whatsapp ios #124

Closed theone3nu closed 5 years ago

theone3nu commented 5 years ago

Thanks for the great lib. I am able to see the extension in the safari browser in real device. However i can't see the extension in the apps like photos, whatsapp. I have added build phrase

export NODE_BINARY=node ../node_modules/react-native/scripts/react-native-xcode.sh

Please help.

theone3nu commented 5 years ago

By adding the property in info plist fixed the issue hence closing this issue.

<dict>
        <key>NSExtensionAttributes</key>
        <dict>
            <key>NSExtensionActivationRule</key>
            <dict>
                <key>NSExtensionActivationSupportsImageWithMaxCount</key>
                <integer>1</integer>
                <key>NSExtensionActivationSupportsWebURLWithMaxCount</key>
                <integer>1</integer>
            </dict>
        </dict>
        <key>NSExtensionMainStoryboard</key>
        <string>MainInterface</string>
        <key>NSExtensionPointIdentifier</key>
        <string>com.apple.share-services</string>
    </dict>