Implement Android Share Receiver
Peter Landry
It would be great to allow registering the app as a share receiver, a la https://developer.android.com/training/sharing/receive.html
We use this currently to add image, video, and audio assets to our mobile app.
Daniel Tiago Fischer
https://www.npmjs.com/package/react-native-receive-sharing-intent
Michael Wood
Daniel Tiago Fischer: yes, it looks like that should work fine with EAS Build.
Julian Kwast
Michael Wood: I tried using that package with EAS, but had the following issue:
For iOS one needs to also create a share-extension for the app. In the bare workflow you can add it directly as a new target and then add "App Groups" under "Signing & Capabilities" in xCode.
I did however not find a way to properly include an extension in the managed workflow, specifically adding it as a target.
Is there a way to do that with an EAS build?
Michael Wood
Julian Kwast: Ah, sorry, I didn't see that part. I'm pretty sure there's a way to do it. Maybe involving
withXcodeProject
.EDIT: I had a quick look in the expo/config-plugins repository and this looked like it might be worth checking out: https://github.com/expo/config-plugins/blob/6360360d942c4095337e5e9c950f3d874ae95672/packages/ios-stickers/src/withStickerXcodeTarget.ts
Julian Kwast
Michael Wood: That seems to be worth checking out, yes. I don't know when I will have the time to do so, though. I will post an update here, once I did.
PS: I did not get a notification for you editing your reply, so I almost missed the edit!
Florian Wolf
Any updates?
Manny Colon
I also need this
Isaac Hinman
Manny Colon: Did you find a way to support this functionality without detaching?
Manny Colon
Isaac Hinman: Unfortunately, I did not.
De Lille Felix
a bit similar to the issue i made: https://forums.expo.io/t/android-intent-filter-associate-app-with-file-extension/3098. This could solve both