Create email via url scheme
Opened this issue ยท 7 comments
Hi do you support or have plans to support opening an email editor via url scheme?
Similar feature request: https://protonmail.uservoice.com/forums/284483-feedback/suggestions/38271067-can-you-add-custom-url-scheme-support-in-the-mobil
+1 one from me. My app allows users to send feedback either with Apple Mail or with Outlook, Gmail or Spark. It would be nice to be able to add ProtonMail to the list :-)
This is a must have feature. Please add it to the app.
Would be nice to have this feature...
maybe someone can check the existing PR opened since 2019 that add this feature #16
This can be closed... There is no need for this, Apple gives the option now to set default email app
I think these are two separate issues. One is setting the default app, and the other is populating the message fields based on a url.
Has this been implemented but this issue not marked as resolved?
I've just had a look in the code.
The App's info.plist has the required CFBundleURLSchemes
for protonmail
and mailto
.
AppDelete.swift has implemented func application(_ application: UIApplication, handleOpen url: URL)
and handled those two on line 277.
This makes me think the code is there...?
Installed the app and tested. Yes it does work. Just need to work out the url parameters now.
Why is this issue still open and not documented?
Update: Using the ProtonMail code as a guide and trying various URL configurations I've worked out that the required URL format looks something like this:
URL="protonmail://mailto:foobar@foobar.org?subject=SubjectTitleOfEMail&body=MessageBodyFooBar"