#iOS Share Extensions ?

6 messages · Page 1 of 1 (latest)

rare girder
#

Hello, starting to experiment on iOS app with Tauri & Leptos.
Having the hello world running fine now on device ! Great Job Folks !!
Next on my use case would be the possibility to share a big file to this app, so would it be possible to create a "share extension" in Tauri ? https://developer.apple.com/documentation/foundation/app_extension_support/supporting_suggestions_in_your_app_s_share_extension

Apple Developer Documentation

Make your messaging app available for share sheet suggestions and use SiriKit intents to populate your app’s share extension.

rare girder
#

Hello there, update on the previous question, we now have a proof of concept of an ios share extension beside the Tauri app, and able to pass a big file to the main app through something named a "group container".

We did it by hacking the tauri generated xcode projet and adding an other skinny swift project to the bundle, but this is very hacky as we modified generated code.

In your opinion what could be the "tauridiomatic" way do do this ?

rare girder
#

UP ?

vague crow
#

Modifiying generated code is currently the tauri way because we don't have a full patch system yet (unless this can also be added in a tauri plugin, then this would be the proper tauri way).
The only issue, at least in beta, is that we sometimes require users to regen the folder so applying changes could get annoying then.

summer gale
#

For anyone that might stumble upon this, we discovered that committing only the project.yml xcodegen file as well as the extension code gets us there with minimal hassle. just need to be careful when changing tauri.conf.json to replicate the changes to project.yml

orchid hound
#

It's been almost a year - anyone have sample code they feel like sharing? 🤞