Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS Tangem App does not recognize default mail app #4464

Open
McoreD opened this issue Jan 4, 2025 · 1 comment
Open

iOS Tangem App does not recognize default mail app #4464

McoreD opened this issue Jan 4, 2025 · 1 comment

Comments

@McoreD
Copy link

McoreD commented Jan 4, 2025

Currently, the Tangem app for iOS is hardcoded to exclusively use the Apple Mail app when initiating email actions, rather than respecting the user's chosen default mail app (as set in iOS 14 and later). This limits user experience and functionality, especially for users who prefer or rely on other email clients like Gmail, Outlook, or Spark.

Details:

Current Behavior: When a user attempts to send an email from within the Tangem app, it always opens the Apple Mail app, regardless of the device's default email app setting.

Expected Behavior: The app should open the user's chosen default email app when an email action is triggered, providing a seamless experience consistent with iOS settings.

Steps to Reproduce:
Set a third-party app (like Gmail) as the default mail app on an iOS device running iOS 14 or later.
Use the Tangem app to trigger an email action (e.g., sending an email from within the app's Contact Support button).
Observe that the Apple Mail app is launched instead of the default email app.

Suggested Fix:

To respect the user's default mail app selection in iOS when using Swift, you can use the UIApplication method to open URLs. Specifically, for email:

let email = "mailto:[email protected]?subject=Hello&body=Test"
if let url = URL(string: email), UIApplication.shared.canOpenURL(url) {
    UIApplication.shared.open(url, options: [:], completionHandler: nil)
}
@theedov
Copy link

theedov commented Jan 6, 2025

I don't think it's possible to add attachments with mailto.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants