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

Linking module fails when user has uninstalled Mail.app #13114

Closed
imjameshall opened this issue Mar 23, 2017 · 10 comments
Closed

Linking module fails when user has uninstalled Mail.app #13114

imjameshall opened this issue Mar 23, 2017 · 10 comments
Labels
Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@imjameshall
Copy link

imjameshall commented Mar 23, 2017

Description

I set up linking to send an email using 'mailto:anyone@anywhere.com?subject=hi' as the URL. When I clicked the link it crashes... because the user has REMOVED the mail app!

Reproduction

  1. On a test device, remove the mail app.
  2. Add the following code after adding the required dependencies:
    Linking.openURL('mailto:anyone@anywhere.com?subject=hi').catch(err => console.error('An error occurred', err));

Solution

I'm not quite sure tbh.

Additional Information

  • React Native version: 0.40
  • Platform: iOS.
  • Development Operating System: Mac OSX 10.12.3
  • Dev tools: XCode 8.2.1,
  • Device: iOS 10
@hramos
Copy link
Contributor

hramos commented May 25, 2017

We're cutting down on the number of outstanding issues, in order to allow us to focus. I'm closing this issue because it has been open for over 60 days with no activity. If you think it should still be opened let us know why.

@hramos hramos closed this as completed May 25, 2017
@hramos hramos added the Icebox label May 26, 2017
@lprhodes
Copy link
Contributor

This is still an issue - please reopen

@hramos
Copy link
Contributor

hramos commented May 31, 2017

@lprhodes do you happen to have more information about the cause of the crash? Any logs or specific error message? This sounds like something that can be easily fixed within Linking by checking if the system supports opening the URL.

@hramos hramos reopened this May 31, 2017
@lprhodes
Copy link
Contributor

lprhodes commented May 31, 2017 via email

@lprhodes
Copy link
Contributor

lprhodes commented May 31, 2017 via email

@lprhodes
Copy link
Contributor

lprhodes commented May 31, 2017 via email

@hramos hramos removed the Icebox label Jul 20, 2017
@drpiou
Copy link

drpiou commented Sep 12, 2017

I have the issue with a mailto:email link.

Linking.canOpenURL return supported = true when actually Mail.app is uninstalled and crashes the app when Linking.openURL is called, the catch is not called.

@edo1493
Copy link
Contributor

edo1493 commented Oct 8, 2017

I have the same here.

@stale
Copy link

stale bot commented Dec 7, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Dec 7, 2017
@stale stale bot closed this as completed Dec 14, 2017
@elliottjro
Copy link

elliottjro commented Mar 14, 2018

hey @lprhodes @drpiou did you guys figure out a work around for this?

I think ideally, it would open up some default emailer eg: inbox (google) or gmail and only throw an error if no emailer is found.

After some research: according to Apple URL Scheme docs - sounds like this problem is rooted in apple, not a problem with RN

@facebook facebook locked and limited conversation to collaborators May 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

6 participants