react-native-mail
react-native-mail copied to clipboard
Unable to catch mail event in Android
I need to show an alert only if the user has sent email. If the user has cancelled or saved mail in drafts, then i should not show alert. When i use the below code, i can able to show alert in iOS as required based on 'event'.
(error, event) => { Alert.alert( error, event, [ {text: 'Ok', onPress: () => console.log('OK: Email Error Response')}, {text: 'Cancel', onPress: () => console.log('CANCEL: Email Error Response')} ], { cancelable: true } ) });
But in Android, this callback itself is not getting called in all cases. Did anybody faced the same issue. Need solution to fix this issue.