Comments (7)
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.
That seems like a solid approach.
from nativescript-email.
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.
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.
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.
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.
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)
- Image CID?
- Hint not showing on iOS? HOT 4
- More restrictive emailapp filtering HOT 1
- Set new activity flag for Android
- AndroidRuntimeException HOT 1
- android.intent.action.SENDTO HOT 5
- Attachments not working. HOT 5
- Cannot read property 'toString' of null when running on android 5 HOT 2
- Not working when Webpacked on Android
- Support for "markingMode" flag
- IOS: Email compose not opening when called from modal HOT 5
- HTML support in composed email HOT 1
- Module not found: Error: Can't resolve 'nativescript-email' HOT 1
- Cannot use compose when presented from a modal view on iOS HOT 1
- Attaching PDFs HOT 9
- ios device available() returns false
- Don't cache the availability check
- open email client HOT 1
- email.available not working properly on iPad Pro (4th generation)
- Error when being used with NativeScript version 8 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nativescript-email.