I am having an issue using the mailto link, when I use the following:
I get “Attempt to invoke virtual method ‘boolean java.lang.String.endsWith(java.lang.String)’ on a null object reference” error.
However when I use Linking.openURL(‘mailto://firstname.lastname@example.org’) I am able to open the email client, but the address it sends to is always ‘//email@example.com’ with the slashes included.
I don’t understand what I’m doing wrong, and was told I should come here for help.
I am testing on a Samsung Galaxy s8+ and I don’t know if this is Android specific. In an iPhone sim I just get a promise rejection, which makes sense because it doesn’t have the email app.