Closed ChristopherGabba closed 8 months ago
🤔 that's seems to be a problem with react-native-receive-sharing-intent module. can you reproduce in a simulator ? that way we can retrieve some device log
@achorein I've never gotten logs before, but I plugged in my developer build and hammered the share extension back and forth and got it to freeze up. Here was the output of the console that I was streaming:
Any idea if the logs above mean anything to you? @achorein
I think is a similar problem as #28, something in getShareExtensionViewControllerContent
code is stucked.
Need to find out what and then update the patch patches/expo-config-plugin-ios-share-extension+0.0.4.patch
I didn't have the time to investigate right now, but will in 1 or 2 week.
@ChristopherGabba can you try with this patch ? should give us more logs (don't forget to clean node_modules
)
expo-config-plugin-ios-share-extension+0.0.4.patch
i cannot reproduce your problem, I tried sharing instagram multiple times and have no issue at all.
your error is about a crash of the iOS custom view (ShareControllerView), to see debug information we have to open the project into xcode (dir /ios
) and attach xcode to the process. Menu : Debug
> Attach to process by PID or Name...
, then find ShareExtension
and attach. This way we can have the true error in the xcode console.
@achorein Thanks for looking into this, I just saw your response now! Let me work on this in the coming days so I can replicate it with logs!
@achorein is there a reason that the patch link above is striked through? Trying to download it now.
@ChristopherGabba the patch add debug logs but introduce a bug as well :/. If you got the real error in xcode console the new patch is not needed anymore.
Hello @achorein, I'm able to reproduce this error very reliably but here is the kicker...
It primarily comes after I update the app to a new version and then share into it without restarting the app. (for instance 1.0.0 to 1.0.1.) I personally think this is not a big deal. I'm going to close the issue. If it starts to become an issue, I can re-open it.
Describe the bug I've been using this great expo share intent demo now for a while and it's been working great. As we get closer to a production release of my application, I've been working hard to try and "break" things to see if it is production ready.
This bug comes when you use ShareIntent in sometimes rapid succession with one another. Below is a video of it occurring:
https://github.com/achorein/expo-share-intent-demo/assets/122328438/1118c062-9248-4bde-aa09-e6d72b0e0dd0
To Reproduce I've been able to reproduce this consistently with sharing from instagram, and can try with others if necessary. I'm following a very similar
useShareIntent
hook approach that is not much different at all from @achorein's Expo 49 demo.Environment
Additional context Add any other context about the problem here.