Open b4lk0n opened 2 years ago
use case: sharing a link from Safari to the app.
after some NSLog
ging and print
ing I found that the data is sent by the extension's view controller. The ShareMenuManager
handles the URL, BUT there is no data inside UserDefaults
.
@b4lk0n Did you have any luck getting past the blank screen on expo?
@NiftyApp nope, I ended up creating my own share extension and tweaking the package via patch-package
Could you share the solution?
Hey folks - I'm adding the package to Expo bare workflow app. I did everything according to instructions and it works perfectly on Android, but doesn't work on iOS.
App's plist:
Extension's plist:
But Expo's
AppDelegate.m
is a bit different from what instructions have. I tried to put the call ofShareMenuManager
'sopenURL
before and afterEXDevLauncherController
but nothing changes:Inside the app I added simple handler:
Actual behavior on both simulator and device:
On the first launch it triggers
getInitialShare
and logs contain:If the app is open and I share a link from Safari to it - nothing happens. The app opens, but no event is triggered (no logs).
If the app is closed (but installed) and I share a link from Safari to the app - the app opens but is stuck on the back screen. And I see the following logs in the terminal:
Has someone faced such an issue or can anyone assist in resolving it?