Comments (6)
@UAjinkya Hey im running into the same issue, have you found a solution to this?
from capacitor-email-composer.
Hi @tih95 ,I have not found solution instead I am using simple window.open("mailto:"+emailTo+'?cc='+emailCC+'&subject='+emailSub+'&body='+emailBody)
from capacitor-email-composer.
I will try to address this as soon as i can - so less time atm 😩
from capacitor-email-composer.
Here is some information from sentry about device type and os. Maybe this helps a bit :)
from capacitor-email-composer.
Hey everybody,
just wanted to fix that, but it looks like the ios interface doesn't respects the default mail app at all. Thats what i found in the documentation and what i experience in my demo app: I changed the default app and opening the email composer works quite well.
So i guess the issue appears when a user has delete the apple mail app on his device. You don't check that with hasAccount
before trying to open the mail composer.
Now how to improve this? Good question. A lot of people just use a mailto
link, which works with the default, but can't be implemented in this plugin, because it supports for example attachments.
The Cordova Plugin exposes some methods to check for hasClient
and options to open the mail composer of a specific client.
But even with this there is still no automatic default detection possible in ios code as it seems, so users are still forced to implement their own logic like: try open in order (apple mail, outlook, ...) until it works or something like ask the user where to open it. I'm not a fan of both tbh.
So now i need a little bit of your input, how we should handle this 🤔
from capacitor-email-composer.
I still need feedback on this, otherwise i'm going to close this issue...
from capacitor-email-composer.
Related Issues (19)
- Provide oss license information HOT 1
- Error if no email account on device HOT 1
- Usage Example Needed HOT 3
- Not working on iOS HOT 3
- Attachments HOT 5
- Error to import interface in angular app HOT 2
- iOS Compiler Version issue in Capacitor 4.01 and Ionic 6.2.2 HOT 6
- Error when launching Android "package android.content does not exist" HOT 2
- 'EmailComposerPlugin' only refers to a type, but is being used as a value here. HOT 1
- App Crash due to android.os.TransactionTooLargeException HOT 4
- open() is not a function HOT 1
- Unable to inject Capacitor, Plugins won't work HOT 2
- Capacitor 5 Support HOT 2
- Fixed versions prevent installation HOT 2
- JSON as attachment HOT 4
- Gradle 9 incompatibility warning HOT 1
- EmailComposerPlugin.open gibes error, doesn't compile HOT 8
- Feature Request - Callback on Email send/cancel HOT 2
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 capacitor-email-composer.