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

FlutterEmailSender.send(email) does not return to my app #53

Open
BoHellgren opened this issue Oct 20, 2020 · 3 comments
Open

FlutterEmailSender.send(email) does not return to my app #53

BoHellgren opened this issue Oct 20, 2020 · 3 comments

Comments

@BoHellgren
Copy link

BoHellgren commented Oct 20, 2020

I have this button:

FloatingActionButton(
              child: Text( 'Send'),
              onPressed: () async {
                emailAddr = myController.text.trim();
                ...
                String platformResponse;
                  try {
                    await FlutterEmailSender.send(email);
                    platformResponse = 'Email has been sent.';
                  } catch (error) {
                    platformResponse = error.toString();
                  }
                  Scaffold.of(context).showSnackBar(SnackBar(
                      backgroundColor: Colors.green,
                      content: Text(platformResponse)));
                }
               },
            );

This takes me to the Gmail write screen. If I tap the Gmail send icon, all is well - the email is sent, I am returned to my app and the snackbar is shown. But if I choose not to send the email after all and press the back-arrow in the app bar on the Gmail write screen, I am returned to the Gmail inbox and there is no way to get back to my app.

The problem only occurs if Gmail is the default email app. With the Samsung Email app, there is no problem.

Using Flutter 1.20.2 • channel beta and flutter_email_sender: ^3.0.1.

@rlfolden
Copy link

I have the same problem. Any ideas?

@BoHellgren
Copy link
Author

@rlfolden There is a new version of the plugin - 4.0.0. I haven't tried it. Have you?

@devotetech0
Copy link

Any fix for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants