cordova-email-plugin icon indicating copy to clipboard operation
cordova-email-plugin copied to clipboard

iOS: isAvailable is true when default Mail app is not installed

Open pavlo-liapin opened this issue 8 years ago • 3 comments

iOS 10.2 Cordova 6.4.0

When default Mail app is uninstalled on iOS, system shows the attached screen, and isAvailable is immediately resolved to true. So when user clicks Cancel, cordova.plugins.email.open fails to launch any apps.

restore

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/40897910-ios-isavailable-is-true-when-default-mail-app-is-not-installed?utm_campaign=plugin&utm_content=tracker%2F12875371&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F12875371&utm_medium=issues&utm_source=github).

pavlo-liapin avatar Jan 12 '17 19:01 pavlo-liapin

so what would your desired behaviour?

hypery2k avatar Jan 12 '17 20:01 hypery2k

If it is possible to detect this scenario on iOS, isAvailable has to be false in this case, because email.open simply fails silently.

pavlo-liapin avatar Jan 12 '17 21:01 pavlo-liapin

maybe the canOpenURL could help to add this feature.

hypery2k avatar Jan 13 '17 12:01 hypery2k