Coder Social home page Coder Social logo

Comments (7)

EddyVerbruggen avatar EddyVerbruggen commented on August 19, 2024 2

Hmm, I'm not fond of deciding such things for the end user nor the developer using this plugin. I for one have many email clients for testing purposes.

And what if we want to add Outlook support as well? I could add a allowAlternativeEmailClient boolean property which, if set and no attachments are supplied, will check for Gmail, then for Outlook, etc. If none is found the default app is used.

from nativescript-email.

firescript avatar firescript commented on August 19, 2024 1

That seems like a solid approach.

from nativescript-email.

EddyVerbruggen avatar EddyVerbruggen commented on August 19, 2024

Thanks for the idea! I think it could be optional to use an alternative email client. There are limitations though as you can't send attachments to Gmail on iOS through the url scheme.

from nativescript-email.

firescript avatar firescript commented on August 19, 2024

This is true, its just in my specific use case I just want to open a new
email to compose an email. Ideally for me, using gmail would be the best
scenario. However I did configure the default mail app as a secondary
option to make it work with my app, I just think it would be good if no
attachments are enabled and gmail app does exist, use gmail, if not use
default app. Because chances are if some one has gmail app installed, its
probably their main email app.

On Wed, Aug 31, 2016 at 9:51 AM, Eddy Verbruggen [email protected]
wrote:

Thanks for the idea! I think it could be optional to use an alternative
email client. There are limitations though as you can't send attachments to
Gmail on iOS through the url scheme.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#5 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABtQGl2jwZGSe0v0xjj_ShZPWBFyjAwFks5qlYbtgaJpZM4Jv180
.

Ryan Lebel
WEBSITE DEVELOPER / DESIGNER

905 929 3160
[email protected]
www.firescript.ca

from nativescript-email.

firescript avatar firescript commented on August 19, 2024

Hey @EddyVerbruggen , just had a thought. Android gives a compose with menu, why not recreate that? Makes the most sense. So you run the function, if you have more then one mail client the option menu is shown. Compose with Mail, Gmail or Outlook if you had all 3 installed.

Like this style:

https://developer.apple.com/ios/human-interface-guidelines/images/action_sheets_2x.png

https://developer.apple.com/reference/uikit/uialertcontrollerstyle/uialertcontrollerstyleactionsheet

from nativescript-email.

EddyVerbruggen avatar EddyVerbruggen commented on August 19, 2024

Yeah that's the way Android Intents work, but on iOS the equivalent would be to kick up a share sheet which is way less powerful for providing fields like to and (b)cc. And I wouldn't be able to limit the apps to just the email ones. I'll try this a bit but I don't think it will be satisfactory, especially for the majority of ppl having only 1 email app so it would be a useless screen. And detecting ALL possible emailapps beforehand to see if there's only 1 is not something I'd love to add.

Using other email clients needs to be programmed into the plugin so we could add a feature to detect which ones of the supported clients is available (getSupportedEmailApps) and send that back to the app. The app can then show an ActionSheet (which it's a standard {N} module).

Thanks for the food for thought, I'll be thinking some more about it!

from nativescript-email.

geoffbullen avatar geoffbullen commented on August 19, 2024

Some people don't bother to set up their default mail client if they are using an app. And they just get the "Send" button shown as disabled, but no explanation as to why its not going to work/

from nativescript-email.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.