Won't open email on Android
brandondadam opened this issue · comments
I'm testing on the Android Studio emulator as well as building to my device and I can't seem to get the email app to open. I have attempted to do this on android v9 & v10. I wrapped it in a try catch to handle the promise, it works fine on iOS. I also tried to remove the try catch and simply called the function on button press, and the same issue, no email app opening.
Here is my implementation:
<Button label='Open email app' onPress={this.openEmailApp}/>
openEmailApp = async () => { try { await openInbox() } catch (error) { alertCantOpenEmailClient() } }
Whoops, I messed and I thought I had a later version of React Native installed. I needed to manually link the package. Thank you!