facebookarchive / react-native-fbsdk

A React Native wrapper around the Facebook SDKs for Android and iOS. Provides access to Facebook login, sharing, graph requests, app events etc.
https://developers.facebook.com/docs/react-native
Other
2.99k stars 909 forks source link

ShareDialog sharing doesn't work on some Android phones (Huawei p30 pro, Xiaomi redmi 9) #828

Open ubitelio opened 3 years ago

ubitelio commented 3 years ago

🐛 Bug Report

Issue title pretty much says it all. Same code, same ShareDialog function just doesn't do anything on some Android phones, while working perfectly fine on others.

Huawei p30 pro runs on Android 10 Xiaomi redmi 9 runs on Android 10

Expected Behavior

Expected for the ShareDialog function to be called

Environment

React Native Environment Info: System: OS: macOS 10.15.7 CPU: (4) x64 Intel(R) Core(TM) i5-7267U CPU @ 3.10GHz Memory: 2.46 GB / 16.00 GB Shell: 5.7.1 - /bin/zsh Binaries: Node: 12.13.1 - /usr/local/bin/node Yarn: 1.10.1 - /usr/local/bin/yarn npm: 6.12.1 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 13.7, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2 Android SDK: API Levels: 23, 25, 26, 27, 28, 29 Build Tools: 26.0.2, 26.0.3, 27.0.3, 28.0.3, 29.0.2, 29.0.3 System Images: android-26 | Google APIs Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom, android-29 | Google APIs Intel x86 Atom IDEs: Android Studio: 3.6 AI-192.7142.36.36.6241897 Xcode: 11.7/11E801a - /usr/bin/xcodebuild npmPackages: react: ^16.8.6 => 16.8.6 react-native: ^0.59.10 => 0.59.10 npmGlobalPackages: react-native-cli: 2.0.1 react-native-rename: 2.5.0 react-native: 0.61.5

ubitelio commented 3 years ago

Update: During some testing we found that this particular issue only happens when user is logged in using Facebook app. If you log off from the Facebook app - Share dialog gets working again in our app.