Closed betabites closed 1 month ago
I need to add the support for multiple scheme, I didn't know it was possible to do that. added in my TODO
According to one of the crash reports, it looks like the issue might be getting caused here, though I'm unsure how to resolve it permanently. And in a way that solves it on all devices.
@betabites good catch ! on iOS we need to open the app using the deeplink url : myapp://
, if we have more than one scheme it didn't know which one to use.
Getting the first scheme should work properly
app.json :
"scheme": ["myapp1", "myapp2"]
then inject scheme[0]
into ShareExtensionViewController.swift
(eg: let shareProtocol = "myapp1"
)
available in v2.1.0
I need to keep more up-to-date with my GitHub. Amazing! Thank You :)
Describe the bug Share intent crashes immediately on iOS when multiple schemes are defined.
To Reproduce Define multiple schemes in your app.json file. https://docs.expo.dev/versions/latest/config/app/#scheme
Environment
Additional context Defining the scheme in the
<ShareIntentProvider>
seems to fix the issue while using the iOS simulator. Though the issue persists on a physical iOS device? No clue how this happens, but it does.According to one of the crash reports, it looks like the issue might be getting caused here, though I'm unsure how to resolve it permanently. And in a way that solves it on all devices.