react-native-email-link icon indicating copy to clipboard operation
react-native-email-link copied to clipboard

Apple Mail vs Default email reader

Open nicolasdevienne opened this issue 3 years ago • 5 comments

Apple Mail is renamed with "Default email reader" with last version 1.14.1

previous version installed (1.13.1), we have "Mail" IMG_8534

last version installed (1.14.1), we have "Default email reader" IMG_8535

nicolasdevienne avatar Jul 29 '22 14:07 nicolasdevienne

Hi @tschoffelen ! No PR for this issue ? :)

nicolasdevienne avatar Aug 23 '22 14:08 nicolasdevienne

What solution would you suggest for this?

This change was made because now iOS has the option to change the default mail client, this first option didn't always link to the stock 'Mail' app anymore (since we're using the mailto:// URL scheme).

See the discussion in this PR here: https://github.com/includable/react-native-email-link/pull/108

tschoffelen avatar Aug 23 '22 15:08 tschoffelen

I don't understand how it works ? I have 3 mail clients installed on my iPhone : Apple Mail, Outlook and Gmail. If Apple Mail is my default mail client, I have 3 options in action sheet as you can see on my screenshort and the first option open Apple Mail. If Outlook is my default mail client, I have the same option but "Outlook" option is not replace by "Apple Mail" option... I have 2 options for the same client mail and no option for Apple Mail... Yet I have this configuration in my Info.plist :

	<key>LSApplicationQueriesSchemes</key>
	<array>
		<string>message</string>
		<string>readdle-spark</string>
		<string>airmail</string>
		<string>ms-outlook</string>
		<string>googlegmail</string>
		<string>inbox-gmail</string>
		<string>ymail</string>
		<string>superhuman</string>
		<string>yandexmail</string>
		<string>fastmail</string>
		<string>protonmail</string>
	</array>

Maybe I forget something ?...

nicolasdevienne avatar Aug 29 '22 16:08 nicolasdevienne

Apple doesn't give us the ability to detect what email client is set as the default one unfortunately, this is just the app that the system tells to respond to the mailto:// URI scheme.

There is also no URI scheme that specifically targets Apple Mail, so if you have another client set to default, we can't open the Apple Mail app to draft a message. These are just iOS limitations, nothing I can see that we could so differently in this library to be more user friendly unfortunately...

tschoffelen avatar Sep 16 '22 09:09 tschoffelen

Hi @tschoffelen and thank you! Is it possible to translate "Default email reader" for French app?

nicolasdevienne avatar Sep 20 '22 20:09 nicolasdevienne

@tschoffelen

nicolasdevienne avatar Nov 10 '22 15:11 nicolasdevienne

Hi @nicolasdevienne! Happy to accept a PR to make the defaultEmailLabel customisable!

tschoffelen avatar Nov 10 '22 16:11 tschoffelen

@tschoffelen I can't push my PR

remote: Permission to includable/react-native-email-link.git denied to nicolasdevienne.
fatal: unable to access 'https://github.com/includable/react-native-email-link.git/': The requested URL returned error: 403

Could you give me permission ?

nicolasdevienne avatar Nov 10 '22 20:11 nicolasdevienne

You can't push directly to this repository - you'd push to your own fork, then create a PR.

https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request-from-a-fork

tschoffelen avatar Nov 11 '22 15:11 tschoffelen

@tschoffelen done! https://github.com/includable/react-native-email-link/pull/113

nicolasdevienne avatar Nov 11 '22 16:11 nicolasdevienne