react-native-mail icon indicating copy to clipboard operation
react-native-mail copied to clipboard

Mail doesn't open - iOS - 11.2.2

Open lpotapczuk opened this issue 6 years ago • 4 comments

Hi!

I have an issue with opening mail on the iOS. I have an iPhone X with 11.2.2. I have set up an email account on it. When I compose mail:

Mailer.mail({
  subject: emailTitle,
  body: emailBody,
  isHTML: false,
}, (error, event) => {
  console.log('Error while emailing notes', error, event);
});

nothing happens. I can see the following logs in my debugger:

2018-04-06 15:24:14.365060+0200 example[271:9475] [MC] Filtering mail sheet accounts for bundle ID: com.example, source account management: 1

But then no window shows up. On Android everything is fine. Any ideas on whats going on?

lpotapczuk avatar Apr 06 '18 13:04 lpotapczuk

Are you running this on simulator? you need to run this on a real device.

chirag04 avatar Apr 06 '18 15:04 chirag04

Yes, I run this on the device. I found out that this was casued by invoking setState method right after using Mailer. As of now I am using timeout to open the mail view. :/

On Fri, Apr 6, 2018, 17:05 Chirag [email protected] wrote:

Are you running this on simulator? you need to run this on a real device.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/chirag04/react-native-mail/issues/105#issuecomment-379281951, or mute the thread https://github.com/notifications/unsubscribe-auth/AJGRCk89fGvxGpyCK2feGR0mJXuGiJCdks5tl4QcgaJpZM4TKDcO .

lpotapczuk avatar Apr 06 '18 15:04 lpotapczuk

same to me on ios 12

punjasin avatar Nov 27 '18 09:11 punjasin

Same to me on IOS 12.1

jothikannan avatar Jan 09 '19 09:01 jothikannan